Esempio n. 1
0
 public Long getOutBufferSize(TcpSocket fan) {
   return (outBufSize <= 0) ? null : Long.valueOf(outBufSize);
 }
Esempio n. 2
0
 public Long remotePort(TcpSocket fan) {
   if (!socket.isConnected()) return null;
   return Long.valueOf(remotePort);
 }
Esempio n. 3
0
 public Long getInBufferSize(TcpSocket fan) {
   return (inBufSize <= 0) ? null : Long.valueOf(inBufSize);
 }
Esempio n. 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);
 }