contents   index   previous   next



Socket accept()

syntax:

socket.accept()

return:

object - A new socket object connected to the client of the incoming request, or null if there is an error.

 

description:

If there is no incoming request waiting on the socket, or this socket is not listening on a certain port, then it is an error and null is returned. Otherwise, the method establishes a socket connection on another port and returns a socket object representing this connection. The returned socket can later be used for reading/writing and other communication between the client and server.

 

see:

#link <sesock>, Socket select(), Socket ready()

 

 


Socket blocking()