Hello,

As of right now I'm in a hard spot. You see at this moment, I've been programming both my client and server. And everything was working very well, until I realized something. The fact that in my client I have multiple threads running and sending data to my server using TCP stream. I've found that once in a blue moon, these threads I have running will send the data directly to the server combined together. Rather then in a separate state. So I was wondering if there is anyway while my client runs these threads to ensure that it only sends one set of streamed data, from client to server at one given time rather then all at once.

any suggestions would be appreciated.

Thanks,
-a2h

Are you saying the TCP software is combining several writes into a single packet?...This is usual and up to the TCP software algorithms to decide on what is most efficient.

Here's a link about forcing TCP to write data..

http://www.unixguide.net/network/socketfaq/2.11.shtml

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.