Home
last modified time | relevance | path

Searched refs:_sock (Results 1 – 25 of 26) sorted by relevance

12

/external/libvncserver/webclients/novnc/include/
Drfb.js63 this._sock = null; // Websock object
172 this._sock = new Websock();
173 this._sock.on('message', this._handle_message.bind(this));
174 this._sock.on('open', function () {
181 this._sock.on('close', function (e) {
201 this._sock.on('error', function (e) {
261 this._sock.send(arr);
267 this._sock.send_string("\xFA\x00" + String.fromCharCode(ver) + String.fromCharCode(op));
296 this._sock.send(arr);
301 this._sock.send(RFB.messages.clientCutText(text));
[all …]
/external/python/cpython2/Lib/
Dsocket.py189 def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0, _sock=None): argument
190 if _sock is None:
191 _sock = _realsocket(family, type, proto)
192 self._sock = _sock
194 setattr(self, method, getattr(_sock, method))
199 self._sock = _closedsocket()
200 dummy = self._sock._dummy
206 sock, addr = self._sock.accept()
207 return _socketobject(_sock=sock), addr
214 return _socketobject(_sock=self._sock)
[all …]
Dssl.py569 socket.__init__(self, _sock=sock._sock)
604 self._sslobj = self._context._wrap_socket(self._sock, server_side,
730 return self._sock.send(data, flags)
738 return self._sock.sendto(data, flags_or_addr)
740 return self._sock.sendto(data, flags_or_addr, addr)
768 return self._sock.recv(buflen, flags)
783 return self._sock.recv_into(buffer, nbytes, flags)
791 return self._sock.recvfrom(buflen, flags)
799 return self._sock.recvfrom_into(buffer, nbytes, flags)
857 … self._sslobj = self.context._wrap_socket(self._sock, False, self.server_hostname, ssl_sock=self)
[all …]
DCGIHTTPServer.py282 while select.select([self.rfile._sock], [], [], 0)[0]:
283 if not self.rfile._sock.recv(1):
/external/libnl/python/netlink/
Dcore.py188 self._sock = capi.nl_socket_alloc_cb(cb._cb)
190 self._sock = capi.nl_socket_alloc()
194 if self._sock is None:
198 capi.nl_socket_free(self._sock)
205 return capi.nl_socket_get_local_port(self._sock)
209 capi.nl_socket_set_local_port(self._sock, int(value))
213 return capi.nl_socket_get_peer_port(self._sock)
217 capi.nl_socket_set_peer_port(self._sock, int(value))
221 return capi.nl_socket_get_peer_groups(self._sock)
225 capi.nl_socket_set_peer_groups(self._sock, value)
[all …]
/external/python/cpython2/Lib/test/
Dtest_urllib2net.py84 httpresponse = abused_fileobject._sock
255 self.assertIsNone(u.fp._sock.fp._sock.gettimeout())
266 self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 60)
277 self.assertIsNone(u.fp._sock.fp._sock.gettimeout())
283 self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120)
291 self.assertIsNone(u.fp.fp._sock.gettimeout())
301 self.assertEqual(u.fp.fp._sock.gettimeout(), 60)
311 self.assertIsNone(u.fp.fp._sock.gettimeout())
316 self.assertEqual(u.fp.fp._sock.gettimeout(), 60)
Dtest_socket.py279 s = socket.socket()._sock
1240 self._sock = sock
1244 n = self._sock.send(data, flags)
1249 self._sock.sendall(data, flags)
1253 return getattr(self._sock, attr)
1260 self.serv_file._sock = self.SocketMemo(self.serv_file._sock)
1281 self.assertEqual(self.serv_file._sock.getsent(), [msg1, msg2, msg3])
Dssl_servers.py95 sock = self.rfile.raw._sock
/external/autotest/client/deps/lansim/src/py/
Dtuntap.py118 self._sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
129 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFMTU,
136 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFFLAGS,
143 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFFLAGS,
154 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFADDR,
170 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFADDR,
177 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFNETMASK,
187 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFHWADDR,
202 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFHWADDR,
Dsimulator_unittest.py35 self._sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
36 self._sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
37 self._sock.bind((host, port))
38 self._sock.listen(1)
45 rlist, wlist, xlist = select.select([self._sock], [], [], 1.)
46 if self._sock in rlist:
47 conn, (addr, port) = self._sock.accept()
51 self._sock.close()
/external/python/cpython3/Lib/asyncio/
Dselector_events.py551 _sock = None variable in _SelectorTransport
562 self._sock = sock
576 if self._sock is None:
629 if self._sock is not None:
632 self._sock.close()
665 self._sock.close()
666 self._sock = None
689 _set_nodelay(self._sock)
724 data = self._sock.recv(self.max_size)
762 n = self._sock.send(data)
[all …]
Dproactor_events.py29 self._sock = sock
49 if self._sock is None:
53 if self._sock is not None:
54 info.append('fd=%s' % self._sock.fileno())
94 if self._sock is not None:
135 if hasattr(self._sock, 'shutdown'):
136 self._sock.shutdown(socket.SHUT_RDWR)
137 self._sock.close()
138 self._sock = None
202 self._read_fut = self._loop._proactor.recv(self._sock, 4096)
[all …]
/external/python/cpython3/Lib/test/
Dtest_urllib2net.py257 self.assertIsNone(u.fp.raw._sock.gettimeout())
269 self.assertEqual(u.fp.raw._sock.gettimeout(), 60)
281 self.assertIsNone(u.fp.raw._sock.gettimeout())
288 self.assertEqual(u.fp.raw._sock.gettimeout(), 120)
297 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
308 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
319 self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
325 self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
Dssl_servers.py95 sock = self.rfile.raw._sock
/external/curl/tests/python_dependencies/impacket/
Dnmb.py714 self._sock = sock
716 self._sock = self._setup_connection((remote_host, sess_port))
737 self._sock.close()
740 return self._sock
800 self._sock.connect(self.peer)
804 p['SourceIP'] = self._sock.getsockname()[0]
809 self._sock.sendto(str(p), self.peer)
810 self._sock.close()
812 self._sock = self._setup_connection(self.peer)
823 data, peer = self._sock.recvfrom(8192)
[all …]
/external/autotest/client/cros/netprotos/
Dzeroconf.py90 self._sock = host.socket(socket.AF_INET, socket.SOCK_DGRAM)
91 self._sock.listen(MDNS_IP_ADDR, MDNS_PORT, self._mdns_request)
98 self._sock.close()
226 self._sock.send(str(resp_dns), MDNS_IP_ADDR, MDNS_PORT)
465 self._sock.send(str(mdns), MDNS_IP_ADDR, MDNS_PORT)
/external/python/cpython2/Lib/multiprocessing/
Dreduction.py184 s = socket.socket(_sock=s)
193 _sock = fromfd(fd, family, type_, proto)
195 return _sock
/external/python/cpython3/Lib/
Dsocket.py564 self._sock = sock
586 return self._sock.recv_into(b)
604 return self._sock.send(b)
636 return self._sock.fileno()
656 self._sock._decref_socketios()
657 self._sock = None
Dsocketserver.py769 self._sock = sock
775 self._sock.sendall(b)
780 return self._sock.fileno()
/external/libnl/python/netlink/route/
Dlink.py381 return capi.rtnl_link_enslave(sock._sock, self._rtnl_link, slave._rtnl_link)
387 return capi.rtnl_link_release(sock._sock, self._rtnl_link, slave._rtnl_link)
396 ret = capi.rtnl_link_add(sock._sock, self._rtnl_link, flags)
407 ret = capi.rtnl_link_change(sock._sock, self._orig, self._rtnl_link, flags)
416 ret = capi.rtnl_link_delete(sock._sock, self._rtnl_link)
541 link = capi.get_from_kernel(sock._sock, 0, name)
Daddress.py317 ret = capi.rtnl_addr_add(socket._sock, self._rtnl_addr, flags)
323 ret = capi.rtnl_addr_delete(socket._sock, self._rtnl_addr, flags)
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_proactor_events.py18 if transport._sock is None:
20 transport._sock.close()
21 transport._sock = None
Dtest_selector_events.py45 if transport._sock is None:
47 transport._sock.close()
48 transport._sock = None
717 self.assertIs(tr._sock, self.sock)
789 self.assertIsNone(tr._sock)
Dtest_base_events.py1298 _sock = None variable in BaseEventLoopWithSelectorTests.test_create_connection_ssl_server_hostname_default._SelectorTransportMock
1304 self._sock.close()
1310 transport._sock = sock
/external/python/cpython3/Lib/http/
Dserver.py1159 while select.select([self.rfile._sock], [], [], 0)[0]:
1160 if not self.rfile._sock.recv(1):

12