Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I bind a SOCKET to a port,it will be waitting for a user.
If there is no user come to the socket,
1.Will the SOCKET be turned off by OS because of timing out?
2.Can I maintain it in existence for ever by using Perl
codes?
This is a simple socket programming issue that is not limited to perl. As long as the application keeps the socket open, the port will remain in use in a passive mode. The socket will then become active when a user connects (assuming TCP - UDP is connectionless) to the port. Thusly, causing the port to become active and allows the controlling process to be notified (become active).