0

I want a Server Client communication via socket programming in java. But problem arises when i try to pass something to client using printWriter's out object i have to use out.Println("...") which prints every thing on clients console; i want to send information to client without printing it on client's conole. Thanks

2 Answers 2

1

Use a stream other than System.out according to your needs. Here are a few to choose from: http://docs.oracle.com/javase/1.4.2/docs/api/java/io/OutputStream.html

Sign up to request clarification or add additional context in comments.

Comments

0

Try using a Datagram Socket on server & client. The link below is a huge help.

http://systembash.com/content/a-simple-java-udp-server-and-udp-client/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.