Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Re: Re: An introduction to POE

by rob_au (Abbot)
on Aug 10, 2003 at 13:23 UTC ( #282611=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    A common misconception in socket programming is that "\n"
    eq "\012" everywhere.  When using protocols such as common
    Internet protocols, "\012" and "\015" are called for
    specifically, and the values of the logical "\n" and "\r"
    (carriage return) are not reliable.
  2. or download this
    print SOCKET "Hi there, client!\r\n";      # WRONG
    print SOCKET "Hi there, client!\015\012";  # RIGHT

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://282611]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (17)
As of 2015-11-30 15:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (774 votes), past polls