<< Labs >> << Assignments >>

Socket Programming

Default chatter program (given)

Modified Chatter program (one keeps sending untill chars ' . ' or ' ? ' are end of message)

Sample output:

E:\CIS3120\lab8>javac ChatterClient.java

E:\CIS3120\lab8>java ChatterServer
Waiting for a client
Connection requested from: /127.0.0.1
hi.
Your turn> what?
nothing
just wondering, hows life.
Your turn> oh, everything is ok, hbu?

E:\CIS3120\lab8>javac ChatterServer.java

E:\CIS3120\lab8>java ChatterClient localhost
Whatcha want?
Your turn> hi.
what?
Your turn> nothing
Your turn> just wondering, hows life.
oh, everything is ok, hbu?
Your turn>


© 2011 The Pain Dealers. All Rights Reserved. Designed by Toxicman. Sponsored by The Pain Radio
Apache: , PHP: 5.2.5