Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: An introduction to POE

by rob_au (Abbot)
on Aug 10, 2003 at 13:23 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-19 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found