Java client server socket program

Hello friends,I need your help to solve the socket programming questionQ write a client program that when a client connects to a server the server returns the word of the day to the clientlooking for your suggestionsNish
[255 byte] By [nish_atowna] at [2007-11-27 0:23:54]
# 1

:)

You have no idea what to do, right?

Well, to put it short:

Server

-create a ServerSocket on a desired port

-get a socket through accept()

-get outputsteram from it

-write word of the day to the stream

Client

-create a socket connecting to the server on the desired port

-get inputstraam from it

-read word of the day from the stream

If you are still having problems, read the docs and tuts more thoroughly.

jadespirita at 2007-7-11 22:20:04 > top of Java-index,Core,Core APIs...
# 2
Thanks for your suggestionsNish
nish_atowna at 2007-7-11 22:20:04 > top of Java-index,Core,Core APIs...