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