MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_socket_nonblock

Function ff_socket_nonblock

libavformat/os_support.c:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209#endif /* !HAVE_GETADDRINFO || HAVE_WINSOCK2_H */
210
211int ff_socket_nonblock(int socket, int enable)
212{
213#if HAVE_WINSOCK2_H
214 u_long param = enable;
215 return ioctlsocket(socket, FIONBIO, &param);
216#else
217 if (enable)
218 return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) | O_NONBLOCK);
219 else
220 return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) & ~O_NONBLOCK);
221#endif /* HAVE_WINSOCK2_H */
222}
223
224#if !HAVE_POLL_H
225int ff_poll(struct pollfd *fds, nfds_t numfds, int timeout)

Callers 7

ff_acceptFunction · 0.85
ff_listen_connectFunction · 0.85
start_connect_attemptFunction · 0.85
udp_connectFunction · 0.85
circular_buffer_task_rxFunction · 0.85
circular_buffer_task_txFunction · 0.85
udp_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected