Lines Matching refs:sock
418 self.sock = connsock
419 self.sock.setblocking(1)
438 self.sslconn = ssl.wrap_socket(self.sock, server_side=True,
451 str(self.sock.getpeername()) + ":\n")
463 return self.sock.recv(1024)
469 return self.sock.send(bytes)
475 self.sock._sock.close()
480 if isinstance(self.sock, ssl.SSLSocket):
481 self.sslconn = self.sock
544 self.sock = socket.socket()
547 self.sock = ssl.wrap_socket(self.sock, server_side=True,
554 sys.stdout.write(' server: wrapped server socket as %s\n' % str(self.sock))
555 self.port = test_support.bind_port(self.sock)
575 self.sock.settimeout(0.05)
576 self.sock.listen(5)
583 newconn, connaddr = self.sock.accept()
594 self.sock.close()
725 sock, addr = self.socket.accept()
726 sslconn = ssl.wrap_socket(sock, server_side=True,
1346 sock = socket.socket()
1350 s = ssl.wrap_socket(sock,
1358 sock.close()