📜  python close a socket - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:34.770000             🧑  作者: Mango

代码示例1
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("10.0.0.3", 1234))
# stuff here
s.close() # this is how you close the socket