Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (connected) {
- try {
- in = new BufferedReader(new InputStreamReader(fromClient.getInputStream()));
- System.out.print("Message got: " + in.toString() + "n");
- out = new PrintWriter(fromClient.getOutputStream(), true);
- System.out.print("Message sent: " + out.toString() + "n");
- } catch (IOException e) {
- System.out.print("Cannot get input stream from clientn");
- }
- }
Add Comment
Please, Sign In to add comment