Re: Suggestions for reading binary data from a connected socket.
From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 07/20/04
- Next message: Roedy Green: "Re: HTML templates"
- Previous message: Roedy Green: "Re: Function and variable inlining on Sun javac"
- In reply to: My Name: "Suggestions for reading binary data from a connected socket."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 20 Jul 2004 20:48:29 GMT
On Mon, 19 Jul 2004 23:50:47 -0700, "My Name"
<temp1001@debusschere.com> wrote or quoted :
>I am new to Java coming from Win32 C/CPP. After a lot of searching, I have
>yet
>to find an example explaining the best solution for reading and writing a
>binary
>message from a socket.
If you are starting from scratch and need to communicate with C, you
might use big-endian DataOutputStreams. If you are working with
legacy, you might use LEDataStream to read the little-endian data.
On the Java end, there is also nio which can handle both big and
little endian formats.
see http://mindprod.com/jgloss/endian.html
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: Roedy Green: "Re: HTML templates"
- Previous message: Roedy Green: "Re: Function and variable inlining on Sun javac"
- In reply to: My Name: "Suggestions for reading binary data from a connected socket."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|