> My question is: I found a way to send an
> object/structure(serializable) with socket in java
> and now I want a technic to receive this object with
> socket in a delphi application
>
> javacode:
> Socket s = new Socket("localhost",2002);
> OutputStream os = s.getOutputStream();
> ObjectOutputStream oos = new
> ObjectOutputStream(os);
> testobject to = new testobject(1,"object from
> client");
> oos.writeObject(to);Java as well as Delphi use their own format for object serialization. They are not compatible between each other. Of course, you can find in the Java documentation how serialization is done and implement that in Delphi. I think it is better to stay away from that and use your own mechanism to send data between your Java and Delphi applications. I suggest you design your own protocol on the model user by most internet application protocols sur as http, ftp, smtp, pop3 and others. They are all more or less message based and independent of any object layout. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

