My client code like this :
socket = new Socket("10.105.1.20", 5678);
DataOutputStrean dos = new DataOutputStream(socket.getOutputStream());
short len = 4;
dos.writeByte(len);
dos.writeByte(len >> 8);
dos.writeShort(0x0410);
dos.flush();
It should be 4 bytes send to the server.But when I use wireshark fetch the packet,the data is 3 bytes
00 04 10
I think it should be
04 00 04 10
Where's the first byte 04 ? Is there sth wrong in my code or it is related to the wireshark.THX for your helps!