public TCPSocketContext(long uniqueSocketId, TCPSocketHandler handler) { this.theUniqueSocketId = uniqueSocketId; this.theHandler = handler; this.theHandler.SetUniqueSocketId(uniqueSocketId); this.createTime = TCPSocketContext.NowSeconds(); }
public bool isConnectionTimeout() { return(!this.isOnConnectCalled && this.createTime + 10 < TCPSocketContext.NowSeconds()); }