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.