Answers for "python close all sockets"

0

python close a socket

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
Posted by: Guest on August-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language