Hi rockmountain,

I think you're going to need to supply more information.

In the first place, please put <code> tags around the Client program to make it readable.  (It would also be helpful to label it as the Client program, the way you do with the Server program).

Secondly, you should be mention what the PeerAddr should be changed to (I'm assuming the address of your local host, if Client and Server are both running locally).  Without that information, people may get frustrated when they get the error:

Socket could not be created. Reason: Invalid argument

Thirdly, there's a bug in your Server program.  You apparently have an extra else keyword which should be removed.

Finally, please give clear, precise and simple instructions how to run the programs.  Don't assume that everyone will intuit that the Server program has to be run first, and the Client program second.  You should state the steps to follow, what output you expect to get, and what output you are getting, and specifically what it is that you think is incorrect.  When I run the Client, it seems to work fine for me:

C:\Documents and Settings\liverpole\Desktop>ioclient.pl Client Connected. Server says: You've reached the server port # 1204 Ping result =>: reachable www.yahoo.com

Is this the same as you're getting?  Is it different?   And in what way does it differ?

If you can make it simple and easy to reproduce the problem, you will get better and quicker responses, with a higher probability of a useful solution.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

In reply to Re: Net::ping is failing. Any reason? by liverpole
in thread Net::ping is failing. Any reason? by rockmountain

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.