<jupyter_start><jupyter_text>SOCKET OVERVIEW* require a client server relationship that we will simulate* communication connection<jupyter_code>import socket
HOST = '127.0.0.1'
PORT = 2001


server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind((HOST, PORT))  # or host can be socket.gethostname()
server.listen(5)
socket.gethostname()
while True:
    clientsocket, address = sock.accept()
    print(f"connection to {address} is good")
server.close()<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup