DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+1 =
Submit