Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 246 Bytes
import socket
# create a server socket , and bind to a port , then listen client connect.
def listen(port=3000):
server = socket.socket(socket.AF_INET,socket.SOCK_STREAM,0)
server.bind(("", port))
server.listen(100)
return server
You can’t perform that action at this time.