Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Send Object with socket

tmazightJul 10 2012 — edited Jul 10 2012
hi,

I have defined objects which correspond to my messages, those object have only "byte" attributes and are realizable, exemple

private byte[] source;
private byte[] destination=new byte[2];
private byte[] n_emetteur=new byte[2];
private byte[] n_message=new byte[2]; ...................

my problem is when i send and object by in.writeObject(myObject) i can't read it in the other hand, because my client is written with C language and i recieve only the name of my class package.package.myclass.

can you help my find out best way to send my objects and be compatible with any client?

thank's
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2012
Added on Jul 10 2012
9 comments
773 views