Java Networking
Is there any easy method by which I can build a client-server model in java, to simply pass a class back and forth? I know I can serialize the class to pass it but I was wondering if there were any wrappers for the sockets so that it''s not quite so painful?
What are you doing now? Did you try ObjectInputStream and ObjectOutputStream?
Yes, I was just looking for something quick and easy that would let me send a single instance of an object over the net, I''m using it in a project for school, but I only have 3 weeks to complete it so I don''t have a ton of time to screw around.
Deadlines, arent they a bitch 
I am thinking you should serialize the class, then send the chars to the server/destination....
PS I hear Sockets aint so bad in java (at least compared to a socket in C/C++)
[edited by - WilyCoder on April 29, 2004 1:03:26 AM]

I am thinking you should serialize the class, then send the chars to the server/destination....
PS I hear Sockets aint so bad in java (at least compared to a socket in C/C++)
[edited by - WilyCoder on April 29, 2004 1:03:26 AM]
April 30, 2004 04:15 AM
Yes, sending objects is real easy. Just include a package id so the other side knows what class to cast the object to.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement