Perl function reference-accept incoming Function - Perl Scripting

what is Perl accept Function indicate?


This function accepts 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.


Following is the simple syntax for this function −

Return Value

This function returns 0 on failure and Packed address of remote host on success.


Following is the example code showing script to create a server −

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

Perl Scripting Topics