khermans
public python v1 · immutable#!/usr/bin/env python#create an INET, STREAMing socketserversocket = socket.socket( socket.AF_INET, socket.SOCK_STREAM)#bind the socket to a public host, # and a well-known portserversocket.bind((socket.gethostname(), 80))#become a server socketserversocket.listen(5)