Results 1 to 2 of 2
- 12-23-2009, 10:15 PM #1Member
- Join Date
- Dec 2009
- Rep Power
sending object through network/socket
I'm running into some problems with a program I have to do for a school project. I've been working on a program which is something like a very easy game/database thingy. It runs a GUI, which reads from a file which characters are available and reads the stats from those characters. I can change, modify or add characters and then save to the file.
The next step is to change this into a network application. My teacher handed out some example program, but it doesnt even run so thats no help.
I've found some example about sockets on the internet which did work on strings, but I'm trying to send objects. I used serializable on one of my objects to try, but it didnt work. second thing I noticed, if I check in the TestServer class is the incoming object is instanceof String, it only responses to every second message. Are my Objects being sent and received?
The code my teacher's example show some interfaces, is this necessary and if so, what is their pupose here?
I've attached my code, so if anyone could give it a look I'd appreciate it very much.
The Gui3 is the working Gui, the TestClient and TestServer both have a gui for testing purposes to send messages across.
- 12-24-2009, 08:34 AM #2
- By cst in forum NetworkingReplies: 0Last Post: 11-04-2009, 02:19 PM
- By qwerty in forum NetworkingReplies: 6Last Post: 04-25-2009, 01:55 AM
- By sureshkumarcs88 in forum NetworkingReplies: 2Last Post: 03-14-2009, 08:32 AM
- By Omarero in forum NetworkingReplies: 4Last Post: 02-16-2009, 07:15 AM
- By nadia in forum NetworkingReplies: 8Last Post: 12-30-2008, 12:57 PM