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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.