Send Object with socket
tmazightJul 10 2012 — edited Jul 10 2012hi,
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