|
-
Sending a String and Int in the same datagramPacket
Hi
I am trying to send a String and an Int number over a UDP socket in a byte array using a DatagramPacket to a server program from a client program. On the server end I need to split the byte array up and change the value of the Int number and then resend the String and Int back to the client. How can I send an Int number and a String in the same byte array, and then separate them at the server end?
Many Thanks
Sam
Similar Threads
-
By floydus in forum VB Classic
Replies: 7
Last Post: 06-05-2006, 05:49 PM
-
By lordanki in forum Java
Replies: 3
Last Post: 04-04-2006, 10:13 AM
-
By mdengler in forum ASP.NET
Replies: 0
Last Post: 11-26-2002, 02:32 PM
-
Replies: 6
Last Post: 04-10-2002, 05:22 AM
-
By Fred Mayes in forum Java
Replies: 1
Last Post: 06-05-2001, 06:12 AM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks