TCPでのPythonソケット関数 Python socket module: Just a thin wrapper over the underlying C library's socket calls. TCPでのPythonソケット関数 l l l l TCPによる通信 gethostname() gethostbyname(hostname) gethostbyname_ex(hostname) gethostbyaddr(ipaddress) s = socket(family, type [, proto]) s. bind(address) s. close() s. connect(address) s. listen(backlog) connection, address = s. accept() string = connection. recv(bufsize [, flags]) connection. send(string [, flags])