Copyright © tutorialspoint.com
Syntax
Definition and UsageAccepts an incoming connection on the existing GENERICSOCKET, which should have been created with socket and bound to a local address using bind. The new socket, which will be used for communication with the client will be NEWSOCKET. GENERICSOCKET will remain unchanged. Returned Value
ExampleHave a look at socket example in Perl Socket Session. You will often see accept() used inside a while loop as follows
|
Copyright © tutorialspoint.com