Re: Exchanging information



Haggis McMutton wrote:
I'm writing a distributed application which includes one server and many
clients that will be exchanging data.

I've made my own crude protocol that uses sockets and simply puts data on
single lines separated by new line characters.

I want to extend this to something a bit more advanced. I was thinking of
using XML but someone said I should use SOAP, but that uses HTTP which
seems to complicate things. Any ideas on the best way to do this?

Serializing objects over a socket should work much the same as sending lines with a newline at the end. Might be the easiest solution being the closest to a drop in replacement.

Query: why change it if it's working now?

Info on serializing objects:
http://www.deitel.com/articles/java_tutorials/20050923/IntroductionToObjectSerialization.html

Doing a really first class job with serialized objects can be tricky. Be sure to read up on it before hand.
.



Relevant Pages

  • Re: Exchanging information
    ... clients that will be exchanging data. ... I've made my own crude protocol that uses sockets and simply puts data on ...
    (comp.lang.java.help)
  • Exchanging information
    ... clients that will be exchanging data. ... I've made my own crude protocol that uses sockets and simply puts data on ...
    (comp.lang.java.help)