public Long getOutBufferSize(TcpSocket fan) { return (outBufSize <= 0) ? null : Long.valueOf(outBufSize); }
public Long remotePort(TcpSocket fan) { if (!socket.isConnected()) return null; return Long.valueOf(remotePort); }
public Long getInBufferSize(TcpSocket fan) { return (inBufSize <= 0) ? null : Long.valueOf(inBufSize); }
public Long localPort(TcpSocket fan) { if (!socket.isBound()) return null; int port = socket.getLocalPort(); if (port <= 0) return null; return Long.valueOf(port); }