P
phantom
Hi all,
I have a server(java) listening to a client (non-Java), the client
is sending the hex values of the length of the string as unsigned
bytes to me. heres the situation:
Client send a hex value :
1st byte : 00
2nd byte : 31
Server reads the bytes correctly as
Byte Integer value ( using in.read())
0 0
31 31
this is all fine the problem starts when the client sends me a
char hex (a-f)
Client
1st byte 05
2nd byte bc
Server reads
Integer value
1st byte 5
2nd byte 65533
and it screws up the rest .
Not sure wat the workaround for this is
Thanking you in anticipation
Sid
I have a server(java) listening to a client (non-Java), the client
is sending the hex values of the length of the string as unsigned
bytes to me. heres the situation:
Client send a hex value :
1st byte : 00
2nd byte : 31
Server reads the bytes correctly as
Byte Integer value ( using in.read())
0 0
31 31
this is all fine the problem starts when the client sends me a
char hex (a-f)
Client
1st byte 05
2nd byte bc
Server reads
Integer value
1st byte 5
2nd byte 65533
and it screws up the rest .
Not sure wat the workaround for this is
Thanking you in anticipation
Sid