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

Function ff_neterrno

libavformat/network.c:121–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120#if HAVE_WINSOCK2_H
121int ff_neterrno(void)
122{
123 int err = WSAGetLastError();
124 switch (err) {
125 case WSAEWOULDBLOCK:
126 return AVERROR(EAGAIN);
127 case WSAEINTR:
128 return AVERROR(EINTR);
129 case WSAEPROTONOSUPPORT:
130 return AVERROR(EPROTONOSUPPORT);
131 case WSAETIMEDOUT:
132 return AVERROR(ETIMEDOUT);
133 case WSAECONNREFUSED:
134 return AVERROR(ECONNREFUSED);
135 case WSAEINPROGRESS:
136 return AVERROR(EINPROGRESS);
137 }
138 return -err;
139}
140#endif
141
142int ff_is_multicast_address(struct sockaddr *addr)

Callers 15

ff_network_wait_fdFunction · 0.85
ff_poll_interruptFunction · 0.85
ff_listenFunction · 0.85
ff_acceptFunction · 0.85
ff_listen_connectFunction · 0.85
start_connect_attemptFunction · 0.85
ff_connect_parallelFunction · 0.85
ff_log_net_errorFunction · 0.85
tcp_openFunction · 0.85
tcp_readFunction · 0.85
tcp_writeFunction · 0.85
tcp_get_window_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected