March 2003
Intermediate to advanced
656 pages
39h 30m
English
accept
s.accept( )Accepts a connection request and returns a pair
(
s1
,(
ipaddr,port
)),
where s1 is a new connected socket and
ipaddr and port
are the IP address and port number of the counterpart.
s must be of type
SOCK_STREAM, and you must have previously called
s
.bind and
s
.listen. If no client
is trying to connect, accept blocks until some
client tries to connect.
Read now
Unlock full access