TCP sockets: NO_DELAY



Hi,
I am new to sockets, and I am trying to write a simple TCP socket using
C/C++.
I noticed that I can use TCP_NODELAY as an option for my socket to
force sending a packet. However, I have a few comments and questions
that I would like to clear:
1. the NO_DELAY option is set on the client side. Is this correct? or I
need it on both sides?
2. I am also getting the '@' character every once in a while. I don't
know what is causing it.

All my code is doing is sending short strings and on the host side I am
displaying those strings. Nothing more... but I would like to use them
as burst data rather than waiting for TCP to buffer then send.

.



Relevant Pages

  • Re: TCP/IP Sockets with GNAT.Sockets
    ... > from a TCP socket in a C program we have always to code the readin a ... or with no expectation until a nonblocking socket returns ... select/poll indicates no data ready for a sufficient time (which most ... certainly provide a suitable type definition of this for you. ...
    (comp.lang.ada)
  • Re: Is it possible to detect TCP session term without reading pending data?
    ... > I have an application which should only read from a TCP socket if ... > detect if the TCP peer closed the connection from his side. ... poll() becomes useless to me because it only ...
    (comp.unix.programmer)
  • Re: whereis the socket mailing list
    ... As we know,the close behavier under tcp socket is shown as below: ... the server generates a FIN_ACK from the server, ... The nitty gritty TCP sequencing and timing is a little bit ...
    (perl.beginners)
  • Re: TCP takes a long time to send packet
    ... > I am working on a TCP socket and I am facing this very weird problem. ... > send(sock, sendBuf, strlen(sendBuf), 0); ... requires a C-style string, not an arbitrary collection of data bytes. ...
    (comp.unix.programmer)
  • Re: SBCL, udp sockets and sendto
    ... Lisp strings, when passed as ... returned from a 'socket' call ... A pointer to one of a number of weird structures ... This contrasts with a TCP server. ...
    (comp.lang.lisp)