How can I prevent TCP/IP from grouping together multiple SendText requests into one packet?



At first I was trying to figure out how to do this the "best" way but
now all I want to do is have it working.

What I have is a very, very simple Delphi program which communicates
with iTunes via COM.

I then have a client (on a different machine) that I'm trying to have
connect to my server application and get an update of tracks, etc.

Right now my client sends the word "UPDATE" to my server and the server
then sends a bunch of packets (tstringlist) that contain artist name,
track name, etc.

The problem is that I'm using Socket.SendText() so fast that TCP/IP is
grouping lots of SendText requests into one TCP/IP packet and then it
gets very hard to parse them on the client...

How can I fix this the easiest way possible?

.



Relevant Pages

  • Anyone know this rootkit (rootkits?)
    ... I was trying to fix up a crashed Red Hat linux 7.2 server for a client today, ... sort of sshd trojan in a whole bunch of places. ...
    (Incidents)
  • Re: Flushing Sockets in C?
    ... > It's basically a bunch of small send calls in rapid succession.... ... > the client. ... the server recieves the data... ...
    (comp.unix.programmer)
  • PrintDocument Problem - Need to print locally
    ... I understand there is no way for the Server to see the Client ... but I have a routine that generates a bunch of bar codes on ...
    (microsoft.public.dotnet.framework.aspnet)
  • How to determine size of object?
    ... The server application needs to return a ... bunch of data to the client. ... persisting a collection to a string and then compressing the string for ...
    (comp.lang.basic.visual.misc)
  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)