跳至主要内容

java detect if Remote Socket isClosed

try {
    socket.sendUrgentData(0xFF);}catch (Exception e){
    remoteSocketIsClosed();
}

评论