original.py 189 B

123456
  1. import socket
  2. server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  3. server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
  4. server_socket.bind(('localhost', 5000))