This discussion is archived
5 Replies Latest reply: Jul 9, 2008 3:15 PM by 843785 RSS

Byte Information

843785 Newbie
Currently Being Moderated
I am having difficulty understanding how to send a "packed" set of bytes across a socket. I have a socket setup between a server and client and I need to send a packet of 2 bytes over this socket. The packet contains an integer for the first byte and a character in the second byte. How do I set this up? I have read about ByteBuffer and Byte[] , but still not clear how to do it. Any help anybody?