Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #python #close #socket
ADD COMMENT
Topic
Name
5+8 =