March 2019
Beginner
490 pages
12h 40m
English
The following are some server socket methods, which are also shown in the following code:
import socketserversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)#bind the socket to localhost on port 80serversocket.bind((‘localhost', 80))#become a server socket and listen a maximum of 10 connectionsserversocket.listen(10)
Read now
Unlock full access