Glad it helped. Theres a lot more to creating a good network transport protocol though. Like I said, I'm no expert, most of my serialised data transfers have been done at work using RS-232/RS-485 and a derivative of the HDLC protocol, so its far from optimal for network transfers.

When the rest of the site is back online there are various articles about network programming, so you may want to have a nose through them.