Encode - decode UDP binary packets
Posted on 2004-04-14
I have a Java UDP server and client that currently communicate sending ASCII strings. I need to be able to send binary packets instead from the client and have the server decode the packet and send back ACKNOWLEDGE response packets also in binary format. How can I accomplish this? I found several examples for converting to and from text or binary files, but nothing specific for UDP packets. I only have a basic Java programming knowledge, so please bear with me. Thanks in advance.