Skip to content

Instantly share code, notes, and snippets.

import os,sys,thread,socket
#********* CONSTANT VARIABLES *********
BACKLOG = 50 # how many pending connections queue will hold
MAX_DATA_RECV = 999999 # max number of bytes we receive at once
DEBUG = True # set to True to see the debug msgs
BLOCKED = [] # just an example. Remove with [""] for no blocking at all.
#**************************************
#********* MAIN PROGRAM ***************