Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

( #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? 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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-07-04 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls