예제 #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);
 }