Lines Matching full:sock
217 ssl=None, sock=None,
229 if sock is not None:
231 'path and sock can not be specified at the same time')
233 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM, 0)
235 sock.setblocking(False)
236 yield from self.sock_connect(sock, path)
238 sock.close()
242 if sock is None:
243 raise ValueError('no path and sock were specified')
244 if (sock.family != socket.AF_UNIX or
245 not base_events._is_stream_socket(sock)):
248 .format(sock))
249 sock.setblocking(False)
252 sock, protocol_factory, ssl, server_hostname)
257 sock=None, backlog=100, ssl=None):
262 if sock is not None:
264 'path and sock can not be specified at the same time')
267 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
281 sock.bind(path)
283 sock.close()
292 sock.close()
295 if sock is None:
297 'path was not specified, and no sock specified')
299 if (sock.family != socket.AF_UNIX or
300 not base_events._is_stream_socket(sock)):
303 .format(sock))
305 server = base_events.Server(self, [sock])
306 sock.listen(backlog)
307 sock.setblocking(False)
308 self._start_serving(protocol_factory, sock, ssl, server)