android - What, exactly, does a "broken pipe" exception mean to the Socket? -


i have android app talks program on pc. i'm using android (java) socket class. if stop , restart pc app next time send android io exception "broken pipe". question not that. here's question:

after getting broken pipe exception if query socket's isclosed() method returns false (i.e., it's not closed), , if query socket's isconnected() method returns true, i.e., connected. please explain these results me? in advance!

broken pipe means pretty you're talking here. program on side still has socket wide open, socket on other side no longer in communication, , didn't go through standard "close pipe" procedure. can happen if other side lost power suddenly, if physical line severed, or whatever. such, locally socket registering both open , connected - it's connected broken pipe. did wish practical advice here, or theory?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -