Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
rookie having socket problems
Posted by seb on December 04, 2001 at 12:49 PM
i am trying to send a file over a socket connection. a server gets a request and socket connection is established. so far so good. now i want to open streams on the server side, but it i need both input streams and output streams. input to read request type from client and output to write the file to client. it goes like this: first, server reads request from inputstream. second, server sends file. third, server (tries to) read from inputstream again, to see if there are additional requests or end of request code. my problem is on the third step, the server wont read anything more at this point it seems, it just blocks, why? I am sending more data from the client, so its not that. Id be very gratefull for tips on this. Thanks. /sebastian
Replies:
- reply Pavan Kumar Keely December 31, 2001 at 1:39 AM
(0)
- This might help Hiran December 07, 2001 at 3:48 PM
(0)
|