Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python socket check if still connected

def is_still_connected(sock):
	try:
		sock.sendall(b"ping")
      	return True
	except:
    	return False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #socket #check #connected
ADD COMMENT
Topic
Name
2+1 =