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