I've got a new question though. I've read in numerous places, that the UDP/IP protocol offers faster transfer times (smaller headers, and no packet ordering or guarantee of reciept) than TCP/IP. I've read that 'packet' loss can be as high as ~20%. My question is what exactly determines what data will be in a 'packet'. Does every call to write() on a socket create a new packet? I've heard there is an algorithm (forget the name) that is used to buffer TCP/IP data for optimum efficency. Is this algorithm also applied to UDP/IP transfers? I ask because I want to know if I have to deal with cases where I will recieve only the start or the end of a message that I've sent, or if i can insure that each of my networking messages exist in one and only one packet.
-g