hi asad,
--- Asad Khan Awan <[EMAIL PROTECTED]> wrote:
> I wanted to findout that if i keep sending data to a
> tcp/ip scoket and on
> the receiving side I dont call the receive (or the
> read)
u need to be clear that u are sending data on a tcp
socket,
assuming that the connection is already established,
the sending entity will timeout bocause the receiver
has crashed( and hence it gets no ACKs)
an ETIMEDOUT error should occur.
> buffer handeled by the kernel, where data is stored
> till read function is
> called. can i set the size of this buffer using some
> function.
>
with a TCP socket, the receive buff is equal to the
window size advertised to the peer, so it will not
overflow.however, excess data if recvd is discarded.
both UDP/TCP buffers can be altered using setsockopt
with the SO_RCVBUF and SO_SNBUF options.
however,be careful!
hth,
siddharth
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]