InputStream of Server and Client

Wednesday, July 9, 2014

My question is if the same inputStream is provided to both Client and server. In my Server side i have:



final socket finalAccept=myServerSocket.accept();
finalAccept.getInputStream();


for the client(which is multithreaded)i have:



HttpURLConnection.getInputStream();


now can it happen that both of them simultaneously read the InputStream resulting in data corruption







http://ift.tt/1rRexxm