Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Answer: Can I read a line from a socket without the socket sending \n?

by crazyinsomniac (Prior)
on Dec 10, 2000 at 03:24 UTC ( #45901=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > Can I read a line from a socket without the socket sending \n? - Answer contributed by crazyinsomniac

Ok ask your self this,
what is a line?
if you can answer it without using '\n' then you can read a line without sending '\n'.
If i were you i would seriously consider limiting the length of a line to 80 characters,
that way when you just read 80 chars you consider it a line or just stick to what works and send '\n'.

  • Comment on Answer: Can I read a line from a socket without the socket sending \n?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2016-12-07 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (131 votes). Check out past polls.