This is how I taught myself Socket programming. Take a look at that tutorial. It will help you a bunch,
views:
82answers:
2
+1
A:
jjnguy
2010-05-28 02:51:33
thks mate was helpful
Haxed
2010-05-28 03:26:12
+1
A:
There's a lot of logic involved in building a seat booking application compared to a simple "echo console".
I would suggest that you first write the entire application uses two "top level" classes instantiated from main - a client and a server. Have them send objects (or strings) to one another for requests and responses.
Once you have that tried and tested (and backed up!), try and replace the messages they send to one another with sockets based on the examples you saw in class or in the sample files. The java tutorial has almost all the examples you would need as well.
Once all this is done, separate the client and the server into separate mains() and get it to work with two processes.
Uri
2010-05-28 02:52:13