Writing to Socket outputStream w/o closing it
I'd like to write some messages to the server.
Each time, for the tramsmitting only, I'm closing the outputStream and reopen it when I have to send the next message.
Is it possible to keep the outputStream, os, open and still able to send the message?
The problem has been solved
I have found it in the client's code.
I have read the data from server:
which hold the data till server socket closed.
(count = inputStream.read(b) ) > -1
This couses to the problem.