java - ServerSocket - Handling status request -


i have serversocket listening on port , clients connect , provide functional requests implemented object streams. each request received, got socket , read this

new objectinputstream(socket.getinputstream()); ... 

this works fine.

now want handle plain socket connection client sake of status of serversocket. opened socket , if successful, assert else down. don't want implement status request using object stream.

the above server code results in java.io.eofexception objectinputstream there no object stream possible.

what practice handle status request of serversocket.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -