In article <34BF5EDC.3...@rcs.sel.de>,
Siegfried Klein <skl...@rcs.sel.de> wrote:
>I discovered a EOL service in the TCP protocol. Using this, I would like
>to use packet service over TCP. How can I achieve this? Can it be done
>using sockets?
What is "EOL service"? If it stands for "End of Line", where did you
"discover" this? TCP doesn't specify the interpretation of the data it
transports, this is normally done by the application (most of the common
protocols, such as TELNET, FTP, and SMTP, use CR LF to indicate end of
line).
TCP doesn't implement a packet service, it implements a byte stream. If
you want to define record boundaries, this again should be implemented in
the application, by representing the record in the TCP data. If you're
looking for a way to ensure that a single write() by the sender translates
to a single read() by the receiver, there's no way to do this at the TCP
level.
--
Barry Margolin, bar...@bbnplanet.com
GTE Internetworking, Powered by BBN, Cambridge, MA
Support the anti-spam movement; see <http://www.cauce.org/>
Please don't send technical questions directly to me, post them to newsgroups.