| Author |
Simple client / server not success
|
adeeb alexander
Ranch Hand
Joined: May 29, 2008
Posts: 267
|
|
Hi,
I have a echo server and echo client. whenever i send a line to server, it is seen at the server. But i want to send the line through the server and should receive at client. How can i do so. Some body please help. Here's the code.
EchoServer
EchoClient
Please tell me what are the changes required.
Thanks and Regards
adeeb.
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8264
|
|
The code as you posted works fine for me:
By the way, using code that depends on end-of-line markers (BufferedReader, Scanner) is not recommended when programming sockets as EOL is OS-dependent.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
 |
|
|
subject: Simple client / server not success
|
|
|