hi to All,
I am facing some problem regarding the socket programming in java .
I made a connection to a printer through the socket and i am sending some request to the printer it`s work fine
The socket is keep a live infinite time
I am storing the sockets in hashmap , as i have connected more than printer to the system .
Now the problem is thats if some body switch off of the printer then again on the printer , my socket doesn`t seems to be working . As it was using the old socket
Can any body tell is there a way to check whether a socket is disconnected (means if some body switch off the printer)
Looking for the good reply !!!!!!!!!!!!!
I am facing some problem regarding the socket programming in java .
I made a connection to a printer through the socket and i am sending some request to the printer it`s work fine
The socket is keep a live infinite time
I am storing the sockets in hashmap , as i have connected more than printer to the system .
Now the problem is thats if some body switch off of the printer then again on the printer , my socket doesn`t seems to be working . As it was using the old socket
Can any body tell is there a way to check whether a socket is disconnected (means if some body switch off the printer)
Looking for the good reply !!!!!!!!!!!!!