jBuild高手请进
setKeepAlive(boolean on) 用来设置SO_KEEPALIVE,这个参数什麽意思?
我在做C/S程序时遇到这么一个问题,如果客户意外断线,服务器端如何监测到,并采取措施断开链接?
我查了doc1.4发现
isClosed() : Returns the closed state of the socket.
boolean isConnected() :Returns the connection state of the socket
均可用,但我用的JBuilder7,jdk的版本低,没有这两个函数,怎么办。