Closed takecx closed 3 years ago
以下のpythonスクリプトを作成して実行したところ、正常にsocket test
が表示されたのでできているぽい
import socket
ip1 = 'localhost'
port1 = 14712
server1 = (ip1, port1)
socket1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket1.connect(server1)
socket1.send(b'chat.post(socket test)')
概要
ソケット通信ができるようにする