| 119 | |
| 120 | #if HAVE_WINSOCK2_H |
| 121 | int 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 | |
| 142 | int ff_is_multicast_address(struct sockaddr *addr) |
no outgoing calls
no test coverage detected