Can i write to data output stream after reading response from data input stream?
- by Sirius
Hi, i want to do a client-server activity like this:
1. first the client sends/writes to output stream
2. the server responses with some data that will be read with input stream
3. after receiving the data, the client sends/writes to output stream again to respond that the data has been received
now, do i have to close the output stream and re-open it again before doing step no.3 ?
also if someone could provide me with a snippet, it would be really helpful. thanks