2022-01-14から1日間の記事一覧
昔ながらのsocket通信に出くわしたので試しにPythonで組んでみました。 実際のところ 送信側 import socket import time with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect(('127.0.0.1',9999)) s.sendall(b"hello") time.sleep(2) w…
昔ながらのsocket通信に出くわしたので試しにPythonで組んでみました。 実際のところ 送信側 import socket import time with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect(('127.0.0.1',9999)) s.sendall(b"hello") time.sleep(2) w…