Home
last modified time | relevance | path

Searched refs:SOCKET_ERROR (Results 1 – 25 of 57) sorted by relevance

123

/external/rust/crates/mio/src/sys/windows/
Dtcp.rs17 … closesocket, linger, setsockopt, getsockopt, getsockname, PF_INET, PF_INET6, SOCKET, SOCKET_ERROR,
43 SOCKET_ERROR in bind()
56 SOCKET_ERROR in connect()
74 syscall!(listen(socket, backlog), PartialEq::eq, SOCKET_ERROR)?; in listen()
92 SOCKET_ERROR => Err(io::Error::last_os_error()), in set_reuseaddr()
108 SOCKET_ERROR => Err(io::Error::last_os_error()), in get_reuseaddr()
122 SOCKET_ERROR => Err(io::Error::last_os_error()), in get_localaddr()
158 SOCKET_ERROR => Err(io::Error::last_os_error()), in set_linger()
174 SOCKET_ERROR => Err(io::Error::last_os_error()), in get_linger()
195 SOCKET_ERROR => Err(io::Error::last_os_error()), in set_recv_buffer_size()
[all …]
Dudp.rs10 use winapi::um::winsock2::{bind as win_bind, closesocket, getsockopt, SOCKET_ERROR, SOCK_DGRAM};
21 SOCKET_ERROR in bind()
46 SOCKET_ERROR in only_v6()
/external/webrtc/rtc_base/
Dwin32_socket_server.cc238 return SOCKET_ERROR; in Attach()
242 return SOCKET_ERROR; in Attach()
248 return SOCKET_ERROR; in Attach()
291 return SOCKET_ERROR; in Bind()
304 return SOCKET_ERROR; in Connect()
328 return SOCKET_ERROR; in Connect()
339 return SOCKET_ERROR; in DoConnect()
342 return SOCKET_ERROR; in DoConnect()
350 if (result != SOCKET_ERROR) { in DoConnect()
360 return SOCKET_ERROR; in DoConnect()
[all …]
Dopenssl_adapter.cc501 return SOCKET_ERROR; in DoSslWrite()
515 return SOCKET_ERROR; in Send()
520 return SOCKET_ERROR; in Send()
532 return SOCKET_ERROR; in Send()
581 return SOCKET_ERROR; in SendTo()
591 return SOCKET_ERROR; in Recv()
596 return SOCKET_ERROR; in Recv()
630 return SOCKET_ERROR; in Recv()
644 return SOCKET_ERROR; in RecvFrom()
Dnet_helpers.cc228 } while (ret == SOCKET_ERROR && err == WSAENOBUFS); in HasIPv6Enabled()
230 if (ret == SOCKET_ERROR) { in HasIPv6Enabled()
/external/tpm2-tss/src/util/
Dio.h24 #define SOCKET_ERROR - 1 macro
34 } while (__ret == SOCKET_ERROR && WSAGetLastError() == WSAEINTR); \
41 } while (__ret == SOCKET_ERROR && errno == EINTR); \
Dio.c161 if (ret == SOCKET_ERROR) { in socket_close()
168 if (ret == SOCKET_ERROR) { in socket_close()
242 if (connect (*sock, p->ai_addr, p->ai_addrlen) != SOCKET_ERROR) in socket_connect()
/external/grpc-grpc/src/core/lib/iomgr/
Dendpoint_pair_windows.cc51 SOCKET_ERROR); in create_sockets()
52 GPR_ASSERT(listen(lst_sock, SOMAXCONN) != SOCKET_ERROR); in create_sockets()
54 SOCKET_ERROR); in create_sockets()
Dtcp_server_windows.cc200 SOCKET_ERROR) { in prepare_socket()
205 if (listen(sock, SOMAXCONN) == SOCKET_ERROR) { in prepare_socket()
212 &sockname_temp_len) == SOCKET_ERROR) { in prepare_socket()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dendpoint_pair_windows.cc51 SOCKET_ERROR); in create_sockets()
52 GPR_ASSERT(listen(lst_sock, SOMAXCONN) != SOCKET_ERROR); in create_sockets()
54 SOCKET_ERROR); in create_sockets()
/external/tensorflow/tensorflow/core/platform/windows/
Dnet.cc54 if (result == SOCKET_ERROR) { in IsPortAvailable()
65 if (result == SOCKET_ERROR) { in IsPortAvailable()
74 if (result == SOCKET_ERROR) { in IsPortAvailable()
/external/webrtc/p2p/base/
Dtcp_port.cc212 return SOCKET_ERROR; in SendTo()
222 return SOCKET_ERROR; in SendTo()
231 return SOCKET_ERROR; in SendTo()
252 return SOCKET_ERROR; in GetOption()
260 return SOCKET_ERROR; in SetOption()
382 return SOCKET_ERROR; in Send()
391 return SOCKET_ERROR; in Send()
399 return SOCKET_ERROR; in Send()
/external/usrsctp/programs/
Dekr_server.c119 if (send(*fdp, buf, (int)length, 0) == SOCKET_ERROR) {
211 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
232 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
291 if (closesocket(fd) == SOCKET_ERROR) {
Dekr_loop_offload.c139 if (send(*fdp, buffer, (int)length, 0) == SOCKET_ERROR) {
354 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
358 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
373 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
377 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
539 if (closesocket(fd_c) == SOCKET_ERROR) {
543 if (closesocket(fd_s) == SOCKET_ERROR) {
Dekr_client.c118 if (send(*fdp, buf, (int)length, 0) == SOCKET_ERROR) {
213 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
234 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
307 if (closesocket(fd) == SOCKET_ERROR) {
Dekr_loop.c119 if (send(*fdp, buf, (int)length, 0) == SOCKET_ERROR) {
337 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
341 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
356 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
360 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
570 if (closesocket(fd_c) == SOCKET_ERROR) {
574 if (closesocket(fd_s) == SOCKET_ERROR) {
Dekr_loop_upcall.c133 if (send(*fdp, buf, (int)length, 0) == SOCKET_ERROR) {
368 if (bind(fd_c, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
372 if (bind(fd_s, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
387 if (connect(fd_c, (struct sockaddr *)&sin_s, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
391 if (connect(fd_s, (struct sockaddr *)&sin_c, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
573 if (closesocket(fd_c) == SOCKET_ERROR) {
577 if (closesocket(fd_s) == SOCKET_ERROR) {
Dekr_peer.c109 if (send(*fdp, buffer, (int)length, 0) == SOCKET_ERROR) {
208 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
229 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
329 if (closesocket(fd) == SOCKET_ERROR) {
Dst_client.c241 if (send(*fdp, buf, (int)length, 0) == SOCKET_ERROR) {
305 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
326 if (connect(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
/external/webrtc/examples/peerconnection/server/
Ddata_socket.cc91 if (bytes == SOCKET_ERROR || bytes == 0) { in OnDataAvailable()
120 SOCKET_ERROR; in Send()
279 SOCKET_ERROR) { in Listen()
283 return listen(socket_, 5) != SOCKET_ERROR; in Listen()
Ddata_socket.h25 #ifndef SOCKET_ERROR
26 #define SOCKET_ERROR (-1) macro
/external/grpc-grpc/test/cpp/naming/
Dresolver_component_test.cc273 SOCKET_ERROR) in OpenAndCloseSocketsStressLoop()
278 ASSERT_TRUE(bind(s, (const sockaddr*)&addr, sizeof(addr)) != SOCKET_ERROR) in OpenAndCloseSocketsStressLoop()
282 ASSERT_TRUE(listen(s, 1) != SOCKET_ERROR) in OpenAndCloseSocketsStressLoop()
301 ASSERT_TRUE(closesocket(sockets[i]) != SOCKET_ERROR) in OpenAndCloseSocketsStressLoop()
/external/mdnsresponder/mDNSWindows/NSPTool/
DNSPTool.c379 err = translate_errno( n != SOCKET_ERROR, (OSStatus) GetLastError(), kUnknownErr ); in ListNameSpaces()
386 err = translate_errno( n != SOCKET_ERROR, (OSStatus) GetLastError(), kUnknownErr ); in ListNameSpaces()
446 err = translate_errno( n != SOCKET_ERROR, (OSStatus) GetLastError(), kUnknownErr ); in ReorderNameSpaces()
453 err = translate_errno( n != SOCKET_ERROR, (OSStatus) GetLastError(), kUnknownErr ); in ReorderNameSpaces()
/external/ms-tpm-20-ref/TPMCmd/Simulator/src/
DTcpServer.c62 # define SOCKET_ERROR (-1) macro
136 if(res == SOCKET_ERROR) in CreateSocket()
143 if(res == SOCKET_ERROR) in CreateSocket()
/external/libpcap/rpcapd/
Drpcapd.c911 if (WSAEventSelect(sock_info->sock, event, FD_ACCEPT) == SOCKET_ERROR) in accept_connections()
970 events[i], &network_events) == SOCKET_ERROR) in accept_connections()
1198 if (WSAEventSelect(sockctrl, NULL, 0) == SOCKET_ERROR) in accept_connection()
1205 if (ioctlsocket(sockctrl, FIONBIO, &off) == SOCKET_ERROR) in accept_connection()

123