new(p1 = v1, p2) public

Creates a new server socket bound to port.

If hostname is given, the socket is bound to it.

serv ="", 28561)
s = serv.accept

Internally, calls getaddrinfo() function to obtain addresses. If getaddrinfo() returns multiple addresses, tries to create a server socket for each address and returns first one that is successful.

Show source
Register or log in to add new notes.