Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by merlyn (Sage)
on Nov 30, 2000 at 21:09 UTC ( [id://44174]=note: print w/replies, xml ) Need Help??


in reply to Can I read a line from a socket without the socket sending \n?

The hardest part about sockets is knowing when to stop reading. You can invent a line-oriented protocol, or use some other indication (like a byte count followed by that many bytes).

Knowing what to use is an art call, decided by experience and study of the prior art. Good luck in your quest!

  • Comment on Re: 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://44174]
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: (2)
As of 2024-04-26 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found