Skip to content
Snippets Groups Projects
Commit 1bc64b32 authored by Sibidharan's avatar Sibidharan :speech_balloon:
Browse files

Added socket code

parent 3ed9f0cc
No related branches found
No related tags found
No related merge requests found
...@@ -4,3 +4,8 @@ from threading import Thread ...@@ -4,3 +4,8 @@ from threading import Thread
HOST = '' HOST = ''
PORT = 4444 PORT = 4444
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind((HOST, PORT))
s.listen() # Look for calling bell
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment