/external/mdnsresponder/mDNSShared/ |
PlatformCommon.c | 44 int sock = socket(AF_INET, SOCK_DGRAM, 0); local 46 if (sock == -1) return; 71 if ((connect(sock, &addr.s, inner_len)) < 0) 74 if ((getsockname(sock, &addr.s, &len)) < 0) 81 close(sock);
|
/external/mesa3d/src/gallium/winsys/virgl/vtest/ |
virgl_vtest_socket.c | 107 int sock, ret; local 109 sock = socket(PF_UNIX, SOCK_STREAM, 0); 110 if (sock < 0) 119 if (connect(sock, (struct sockaddr *)&un, sizeof(un)) < 0) { 124 vws->sock_fd = sock;
|
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
TCPMessageProcessor.java | 68 private ServerSocket sock; field in class:TCPMessageProcessor 95 this.sock = sipStack.getNetworkLayer().createServerSocket(getPort(), 0, getIpAddress()); 99 super.setIpAddress(sock.getInetAddress()); 133 Socket newsock = sock.accept(); 179 sock.close();
|
TLSMessageChannel.java | 113 * new connections. The sock input is the socket that is returned from the accept. Global data 116 * @param sock Socket from which to read and write messages. The socket is already connected 124 protected TLSMessageChannel(Socket sock, SIPTransactionStack sipStack, 131 mySock = (SSLSocket) sock; 132 if ( sock instanceof SSLSocket ) { 134 SSLSocket sslSock = (SSLSocket) sock; 255 Socket sock = this.sipStack.ioHandler.sendBytes( local 261 if (sock != mySock && sock != null) { 267 mySock = sock; 308 Socket sock = this.sipStack.ioHandler.sendBytes(this.messageProcessor.getIpAddress(), local [all...] |
UDPMessageChannel.java | 391 ((UDPMessageProcessor)this.messageProcessor).sock.send(keepalive); 705 DatagramSocket sock; local 713 sock = ((UDPMessageProcessor) messageProcessor).sock; 718 // sock = new DatagramSocket(0,sipStack.stackInetAddress); 721 sock = new DatagramSocket(); 724 sock.send(reply); 726 sock.close(); 769 DatagramSocket sock; local 771 sock = ((UDPMessageProcessor) messageProcessor).sock [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/ |
HttpFacade.java | 124 Socket sock = mServerSocket.accept(); local 126 mSockets.put(socketCnt, sock); 250 Socket sock = mSockets.get(key); local 252 sock.close(); 254 Log.e("Failed to close socket " + key + " on port " + sock.getLocalPort());
|
/kernel/tests/net/test/ |
tun_twister.py | 59 sock = socket(AF_INET, SOCK_DGRAM, 0) 60 sock.bind(("0.0.0.0", 8080)) 61 sock.settimeout(1.0) 62 sock.sendto("hello", ("1.2.3.4", 8080)) 63 data, addr = sock.recvfrom(1024)
|
xfrm_test.py | 251 def _VerifyUdpEncapSocket(self, netid, remoteaddr, myaddr, encap_port, sock, 254 sock.sendto(net_test.UDP_PAYLOAD, (remoteaddr, 53)) 255 srcport = sock.getsockname()[1] 481 sock = net_test.UDPSocket(family) 482 self.SelectInterface(sock, netid, "mark") 483 sock.bind((local_addr, 0)) 484 local_port = sock.getsockname()[1] 488 sock, family, xfrm.XFRM_POLICY_OUT, 0xABCD, 123, 491 sock, family, xfrm.XFRM_POLICY_IN, 0x9876, 456, 504 msg, addr = sock.recvfrom(1024 [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_socket.py | 24 sock = socket.socket(family, socket.SOCK_STREAM)
25 sock.bind((host, port))
29 sock.close()
558 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
559 self.addCleanup(sock.close)
560 sock.bind(("0.0.0.0", port))
561 name = sock.getsockname()
576 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
577 self.addCleanup(sock.close)
578 reuse = sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) [all...] |
/external/python/cpython2/Lib/idlelib/ |
rpc.py | 128 def __init__(self, sock, objtable=None, debugging=None): 132 self.sock = sock 140 sock = self.sock 141 self.sock = None 142 if sock is not None: 143 sock.close() 331 r, w, x = select.select([], [self.sock], []) 332 n = self.sock.send(s[:BUFSIZE] [all...] |
/external/python/cpython3/Lib/idlelib/ |
rpc.py | 129 def __init__(self, sock, objtable=None, debugging=None): 133 self.sock = sock 141 sock = self.sock 142 self.sock = None 143 if sock is not None: 144 sock.close() 339 r, w, x = select.select([], [self.sock], []) 340 n = self.sock.send(s[:BUFSIZE] [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/idlelib/ |
rpc.py | 128 def __init__(self, sock, objtable=None, debugging=None): 132 self.sock = sock 140 sock = self.sock 141 self.sock = None 142 if sock is not None: 143 sock.close() 331 r, w, x = select.select([], [self.sock], []) 332 n = self.sock.send(s[:BUFSIZE] [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/idlelib/ |
rpc.py | 128 def __init__(self, sock, objtable=None, debugging=None): 132 self.sock = sock 140 sock = self.sock 141 self.sock = None 142 if sock is not None: 143 sock.close() 331 r, w, x = select.select([], [self.sock], []) 332 n = self.sock.send(s[:BUFSIZE] [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
rpc.py | 128 def __init__(self, sock, objtable=None, debugging=None): 132 self.sock = sock 140 sock = self.sock 141 self.sock = None 142 if sock is not None: 143 sock.close() 331 r, w, x = select.select([], [self.sock], []) 332 n = self.sock.send(s[:BUFSIZE] [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
rpc.py | 128 def __init__(self, sock, objtable=None, debugging=None): 132 self.sock = sock 140 sock = self.sock 141 self.sock = None 142 if sock is not None: 143 sock.close() 331 r, w, x = select.select([], [self.sock], []) 332 n = self.sock.send(s[:BUFSIZE] [all...] |
/external/libpcap/ |
sockutils.c | 285 SOCKET sock; local 287 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); 288 if (sock == -1) 309 if (setsockopt(sock, IPPROTO_IPV6, IPV6_BINDV6ONLY, (char *)&on, sizeof (int)) == -1) 319 if (bind(sock, addrinfo->ai_addr, (int) addrinfo->ai_addrlen) != 0) 326 if (listen(sock, nconn) == -1) 333 return sock; 354 if (connect(sock, tempaddrinfo->ai_addr, (int) tempaddrinfo->ai_addrlen) == -1) 393 closesocket(sock); 397 return sock; [all...] |
/art/runtime/jdwp/ |
jdwp_adb.cc | 228 int sock = socket(AF_UNIX, SOCK_SEQPACKET, 0); local 229 if (sock < 0) { 236 setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)); 239 control_sock_ = sock; 304 int sock = ReceiveClientFd(); local 307 clientSock = sock; 414 int sock = ReceiveClientFd(); local 415 if (sock >= 0) { 417 close(sock);
|
/external/curl/lib/ |
pingpong.c | 84 curl_socket_t sock = conn->sock[FIRSTSOCKET]; local 113 rc = Curl_socket_check(pp->sendleft?CURL_SOCKET_BAD:sock, /* reading */ 115 pp->sendleft?sock:CURL_SOCKET_BAD, /* writing */ 211 result = Curl_write(conn, conn->sock[FIRSTSOCKET], s, write_len, 472 socks[0] = conn->sock[FIRSTSOCKET]; 488 curl_socket_t sock = conn->sock[FIRSTSOCKET]; local 489 CURLcode result = Curl_write(conn, sock, pp->sendthis + pp->sendsize -
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
socket.py | 58 def ssl(sock, keyfile=None, certfile=None):
64 return _realssl.sslwrap_simple(sock, keyfile, certfile)
206 sock, addr = self._sock.accept()
207 return _socketobject(_sock=sock), addr
250 def __init__(self, sock, mode='rb', bufsize=-1, close=False):
251 self._sock = sock
559 sock = None
561 sock = socket(af, socktype, proto)
563 sock.settimeout(timeout)
565 sock.bind(source_address) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
asyncore.py | 230 def __init__(self, sock=None, map=None):
238 if sock:
241 sock.setblocking(0)
242 self.set_socket(sock, map)
247 self.addr = sock.getpeername()
294 sock = socket.socket(family, type)
295 sock.setblocking(0)
296 self.set_socket(sock)
298 def set_socket(self, sock, map=None):
299 self.socket = sock
[all...] |
socket.py | 58 def ssl(sock, keyfile=None, certfile=None):
64 return _realssl.sslwrap_simple(sock, keyfile, certfile)
202 sock, addr = self._sock.accept()
203 return _socketobject(_sock=sock), addr
246 def __init__(self, sock, mode='rb', bufsize=-1, close=False):
247 self._sock = sock
555 sock = None
557 sock = socket(af, socktype, proto)
559 sock.settimeout(timeout)
561 sock.bind(source_address) [all...] |
telnetlib.py | 199 self.sock = None
225 self.sock = socket.create_connection((host, port), timeout)
255 if self.sock:
256 self.sock.close()
257 self.sock = 0
264 return self.sock
268 return self.sock.fileno()
280 self.sock.sendall(buffer)
455 self.option_callback(self.sock, c, NOOPT)
469 self.option_callback(self.sock, cmd, opt) [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
Tcp4Misc.c | 434 DEBUG ((EFI_D_ERROR, "TcpCloneTcb: failed to clone a sock\n"));
464 @param Sock Pointer to the socket to get mss
471 IN SOCKET *Sock
478 ASSERT (Sock != NULL);
480 TcpProto = (TCP4_PROTO_DATA *) Sock->ProtoReserved;
882 @param Sock Pointer to the socket representing the TCP instance.
890 IN SOCKET *Sock
901 TcpProto = (TCP4_PROTO_DATA *) Sock->ProtoReserved;
920 Sock->DevicePath = AppendDevicePathNode (
921 Sock->ParentDevicePath, [all...] |
/external/python/cpython2/Lib/ |
asyncore.py | 233 def __init__(self, sock=None, map=None): 241 if sock: 244 sock.setblocking(0) 245 self.set_socket(sock, map) 250 self.addr = sock.getpeername() 297 sock = socket.socket(family, type) 298 sock.setblocking(0) 299 self.set_socket(sock) 301 def set_socket(self, sock, map=None): 302 self.socket = sock [all...] |
socket.py | 58 def ssl(sock, keyfile=None, certfile=None): 64 return _realssl.sslwrap_simple(sock, keyfile, certfile) 206 sock, addr = self._sock.accept() 207 return _socketobject(_sock=sock), addr 250 def __init__(self, sock, mode='rb', bufsize=-1, close=False): 251 self._sock = sock 559 sock = None 561 sock = socket(af, socktype, proto) 563 sock.settimeout(timeout) 565 sock.bind(source_address [all...] |