[jdev] TCP Packet Construction

Jon Phillips jon at rejon.org
Thu Nov 4 23:31:41 CST 2004


Hello,

I interested to know if there are any good resources, documents, or 
source code I could look at to see how to properly receive packets from 
a jabber server like jabberd (which I am using) via TCP and then how to 
receive and reconstruct the entire packet.

I'm using Visual Studio .net and WINSOCK to do connection and receiving. 
Right now I have a working client that receive packets that are 8129 
bytes, but these packets might not contain the full message. This 
problem gets worse with more traffic.

What is the best way to construct entire jabber server packets into 
comlete packets/message. For example, the server might send a user's 
message in xml, and because of web traffic the complete message might 
not arrive in teh received 8192 bytes...

Other than this problem, my custom jabber client for this game, 
gopetslive.com is going pretty well.

Any help or code sample or pointers would be much appreciated.

Thanks,
Jon

-- 
Jon Phillips

KOREA.PH.010.3140.7483
USA.PH.858.361.2811
jon at rejon.org
http://www.rejon.org

Inkscape (http://inkscape.org)
Open Clip Art Library (www.openclipart.org)
CVS Book (http://cvsbook.ucsd.edu)
Scale Journal (http://scale.ucsd.edu)



More information about the JDev mailing list