Article View: borland.public.jbuilder.java.language
Article #16905Q] network byte order
From: Moon-Jeong, Choi
Date: Thu, 31 Dec 1998 00:00
Date: Thu, 31 Dec 1998 00:00
23 lines
1089 bytes
1089 bytes
Hi! I sent a message with message id(short; "2bytes") from my PC to another machine(PC or unix, ...). ------------- message = "" + (short)0x7131 + null; message.getBytes(0, message.length(), buffer, 0); ... ------------- Message was converted to the string of DatagramPacket type. At this time, my message id is changed 4 bytes string from 2 bytes short-type. And I caught a following message through NetXRay. ... Data 0000 : 37 31 33 31 ... | 7131null How can I send my message with 2 bytes format to another machine? and with correct network byte order? Thank you for your appreciate in advance. - Moon
Technical Details
Message-ID:
<76fjn2$t3e3@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,179aab18d5297b76,start X-Google-Attributes: gidf74b3,public From: "Moon-Jeong, Choi" <mjchoi@star.dwt.co.kr> Subject: Q] network byte order Date: 1998/12/31 Message-ID: <76fjn2$t3e3@forums.borland.com> X-Deja-AN: 427416351 Organization: Daewoo Telecom LTD. X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: borland.public.jbuilder.java.language