hey everyone. first post in this forum
i am haveing trouble with sockets in vb.net. apparently there is this new <sarcasm>wonderful</sarcasm> thing called the nagle algorithm that holds on to your data that you send until a buffer is full of data. This is supposed to improve network conjestion and i suppose it does however there is no way that i know of that will force a socket to send its data and put it on the wire. so i have this one program(A) and its trying to send a small amount of data (less than 20 bytes) to program(B) using sockets. It is important that the data gets to program B ASAP. what does one do in this situation. I tried disableing the nagle algorithm with :
Skt.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1)
this only helps a little. Im looking for something like:
Socket.Flush()
i am haveing trouble with sockets in vb.net. apparently there is this new <sarcasm>wonderful</sarcasm> thing called the nagle algorithm that holds on to your data that you send until a buffer is full of data. This is supposed to improve network conjestion and i suppose it does however there is no way that i know of that will force a socket to send its data and put it on the wire. so i have this one program(A) and its trying to send a small amount of data (less than 20 bytes) to program(B) using sockets. It is important that the data gets to program B ASAP. what does one do in this situation. I tried disableing the nagle algorithm with :
Skt.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1)
this only helps a little. Im looking for something like:
Socket.Flush()