java.net.Socket.getFileDescriptor$()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(233)

本文整理了Java中java.net.Socket.getFileDescriptor$()方法的一些代码示例,展示了Socket.getFileDescriptor$()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Socket.getFileDescriptor$()方法的具体详情如下:
包路径:java.net.Socket
类名称:Socket
方法名:getFileDescriptor$

Socket.getFileDescriptor$介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

public final void tag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    tag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: robovm/robovm

public final void untag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    untag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: MobiVM/robovm

public final void untag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    untag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: ibinti/bugvm

/**
   * Method acts as described in spec for superclass.
   * @see java.io.InputStream#read(byte[],int,int)
   */
  @Override
  public int read(byte[] buf, int offset, int byteCount) throws IOException {
    BlockGuard.getThreadPolicy().onNetwork();
    synchronized (readLock) {
      checkOpen();
      Arrays.checkOffsetAndCount(buf.length, offset, byteCount);
      if (byteCount == 0) {
        return 0;
      }
      return NativeCrypto.SSL_read(sslNativePointer, socket.getFileDescriptor$(),
          OpenSSLSocketImpl.this, buf, offset, byteCount, getSoTimeout());
    }
  }
}

代码示例来源:origin: ibinti/bugvm

/**
   * Method acts as described in spec for superclass.
   * @see java.io.OutputStream#write(byte[],int,int)
   */
  @Override
  public void write(byte[] buf, int offset, int byteCount) throws IOException {
    BlockGuard.getThreadPolicy().onNetwork();
    synchronized (writeLock) {
      checkOpen();
      Arrays.checkOffsetAndCount(buf.length, offset, byteCount);
      if (byteCount == 0) {
        return;
      }
      NativeCrypto.SSL_write(sslNativePointer, socket.getFileDescriptor$(),
          OpenSSLSocketImpl.this, buf, offset, byteCount, writeTimeoutMilliseconds);
    }
  }
}

代码示例来源:origin: com.bugvm/bugvm-rt

@Override
public FileDescriptor getFileDescriptor$() {
  return socket.getFileDescriptor$();
}

代码示例来源:origin: ibinti/bugvm

@Override
public FileDescriptor getFileDescriptor$() {
  return socket.getFileDescriptor$();
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

public final void tag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    tag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: FlexoVM/flexovm

public final void untag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    untag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: com.gluonhq/robovm-rt

public final void untag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    untag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: com.bugvm/bugvm-rt

@Override
public FileDescriptor getFileDescriptor$() {
  if (socket == this) {
    return super.getFileDescriptor$();
  } else {
    return socket.getFileDescriptor$();
  }
}

代码示例来源:origin: com.bugvm/bugvm-rt

public final void untag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    untag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: FlexoVM/flexovm

public final void tag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    tag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

public final void untag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    untag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: ibinti/bugvm

public final void tag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    tag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: com.bugvm/bugvm-rt

public final void tag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    tag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: ibinti/bugvm

public final void untag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    untag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: ibinti/bugvm

@Override
public FileDescriptor getFileDescriptor$() {
  if (socket == this) {
    return super.getFileDescriptor$();
  } else {
    return socket.getFileDescriptor$();
  }
}

代码示例来源:origin: com.gluonhq/robovm-rt

public final void tag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    tag(socket.getFileDescriptor$());
  }
}

代码示例来源:origin: MobiVM/robovm

public final void tag(Socket socket) throws SocketException {
  if (!socket.isClosed()) {
    tag(socket.getFileDescriptor$());
  }
}

相关文章