Link to home
Start Free TrialLog in
Avatar of mte01
mte01Flag for Lebanon

asked on

Problem in reading from Input Stream

Hey experts,

I have a client program in java that is communicating with a server program that is also in java using sockets, the client is writing using: os.write  where os is of type OutputStream, and the server is reading the sent string using:  datain.readLine()   where datain is of type BufferedReader. The connection is being successfull, and the client is successfully sending the string, but the server is never receiving it, it is remaining stuck on the datain.readLine() statement.....any help on solving the problem??
ASKER CERTIFIED SOLUTION
Avatar of OBCT
OBCT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mte01

ASKER

Yes.....I don't know how on earth I forgot that!!!....thanks a lot!!
Avatar of OBCT
OBCT

Your welcome. :-)