How can I use primitive datatypes with sockets in JAVA ?
0 posts in topic
Flat View  Flat View

Posted By:   Sujay_Tase
Posted On:   Tuesday, September 25, 2001 03:26 PM

I need to send and receive messages in a specific format. e.g.

The logon message format is as follows

2 bytes - message length in binary format(e.g. 50)

2 bytes - version number as ASCII string (e.g. "10")

1 byte - Status in binary format. value will be in range 0-63

1 byte - a character in A-Z

How can I do this using sockets in JAVA ?

About | Sitemap | Contact