|
-
April 3rd, 2001, 09:54 PM
#1
UDP winsock
I am trying write a client that sends a UDP packet to the server. The packet should contain a byte field, integer field, boolean field, and a string field. I think a bytearray is the way to go because the java server accepts a bytearray as part of its datagramPacket, but I'm not sure how to pack the byte array containing these fields. Is the bytearray the best way to go about sending the packet? If so, how? If not, what other construct should I use to send the packet with the desired fields?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|