Hi. Thanks for your help. Am a complete novice at this all and am new to buffers so have been working on it ever since your post and now think im starting to get somewhere.

Does anyone know of a good tutorial for buffers? I've been searching but am yet to find any really useful tutorials. I'm a little confused about the whole area, for example I'm not sure how I can pack data into packets, the way i've been doing it so far is shown below:

Code:
 
c:=_UPDATE;
 main_form.IdTCPClient1.WriteBuffer(c,sizeof(c));
 main_form.IdTCPClient1.WriteBuffer(u,sizeof(u));
This way will it be sent as a single packet or as two packets? Also I'm unsure as how to get the size of the packet recieved by Indy, although im sure if i keep on looking I'll find this out in the documentation one day...

Thanks for your help!