elektrobank
Member
- Joined
- Aug 11, 2008
- Messages
- 19
- Programming Experience
- 10+
I wrote a server application that was using UDP to receive data. The server needs to respond very quickly to the incoming data and produce near-real-time output. Using UDP, this works just fine. However I need to switch to using TCP. But when I do so, there was a noticeable lag with the incoming traffic. I played around with the buffer size, but it didn't make a difference. All the rest of the code is the same, I'm just using TCP instead of UDP. Can anything think of any reason for the slow down?
I have a similar server that I wrote for Unix that uses straight up BSD sockets, and it has no noticeable difference when I switched to TCP, so it appears to have to do with .NET.
I'm using asynchronous TCP sockets.
I have a similar server that I wrote for Unix that uses straight up BSD sockets, and it has no noticeable difference when I switched to TCP, so it appears to have to do with .NET.
I'm using asynchronous TCP sockets.