There's more than one way to do things | |
PerlMonks |
Are their Documented Default Exit Codes for Certain Modules?by mmartin (Monk) |
on Aug 08, 2013 at 20:46 UTC ( [id://1048642]=perlquestion: print w/replies, xml ) | Need Help?? |
mmartin has asked for the wisdom of the Perl Monks concerning the following question:
Hey Monks, got a quick question... I'm using the Perl Module IO::Socket::INET to open a Socket between two computers. The 'server' PC just sits and waits/listens for a connection and the 'client' initiates the connection and then we send some data to the server. So in testing stuff with this, i.e. trying to find what possible errors could happen and what things I should handle. I was wondering if anyone knows of any documentation where this kind of stuff would be written down for this particular Module..? I've Googled just about every combination of words I can think of for the last 2 or 3 days now and the best site I found was this one, but it's NOT exactly what I'm looking for... At least I don't think it is?         http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668%28v=vs.85%29.aspx I found that link by simply searching for the 2 main errors/warning that I came across which are:         1. "Connection Refused" with Return_Code=="111"         2. "No route to host" with Return_Code=="113". I've verified that I get these Exit codes consistently in specific situations, for example I'll get the "No route to host" if the server PC is powered-off or if the Ethernet port is disabled or anything along those lines... I'm calling the script that creates the Socket from within another script and capturing the Return Codes in the calling script, so I was hoping for some kind of documentation about Exit Codes and what not... Any know if anything like that exists out there anywhere..? FYI: If it makes a difference the 'server' side script is running on Windows and the client can run from Linux OR Windows too... Any thoughts would be much appreciated! Thanks in Advance, Matt
Back to
Seekers of Perl Wisdom
|
|