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

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

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

Socket.setOOBInline介绍

[英]Sets this socket's SocketOptions#SO_OOBINLINE option.
[中]

代码示例

代码示例来源:origin: aws/aws-sdk-java

@Override
public void setOOBInline(boolean on) throws SocketException {
  sock.setOOBInline(on);
}

代码示例来源:origin: apache/zookeeper

/**
 * See {@link Socket#setOOBInline(boolean)}. Calling this method does not trigger mode detection.
 */
@Override
public void setOOBInline(boolean on) throws SocketException {
  getSocketAllowUnknownMode().setOOBInline(on);
}

代码示例来源:origin: jphp-group/jphp

@Signature(@Arg("on"))
public Memory setOOBInline(Environment env, Memory... args) throws SocketException {
  socket.setOOBInline(args[0].toBoolean());
  return Memory.NULL;
}

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

} else if (option == Options.TCP_OOB_INLINE) {
  result = option.cast(Boolean.valueOf(conduit.getSocketChannel().socket().getOOBInline()));
  conduit.getSocketChannel().socket().setOOBInline(Options.TCP_OOB_INLINE.cast(value, Boolean.FALSE).booleanValue());
} else if (option == Options.WRITE_TIMEOUT) {
  result = option.cast(Integer.valueOf(conduit.getAndSetWriteTimeout(value == null ? 0 : Options.WRITE_TIMEOUT.cast(value).intValue())));

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

final Socket socket = accepted.socket();
socket.setKeepAlive(keepAlive != 0);
socket.setOOBInline(oobInline != 0);
socket.setTcpNoDelay(tcpNoDelay != 0);
final int sendBuffer = this.sendBuffer;

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

final Socket socket = accepted.socket();
socket.setKeepAlive(keepAlive != 0);
socket.setOOBInline(oobInline != 0);
socket.setTcpNoDelay(tcpNoDelay != 0);
final int sendBuffer = this.sendBuffer;

代码示例来源:origin: apache/nifi

socket.setOOBInline(config.getOobInline());

代码示例来源:origin: ltsopensource/light-task-scheduler

socketChannel.socket().setOOBInline(serverConfig.getOobInline());

代码示例来源:origin: ltsopensource/light-task-scheduler

socketChannel.socket().setOOBInline(serverConfig.getOobInline());

代码示例来源:origin: ltsopensource/light-task-scheduler

socketChannel.socket().setOOBInline(clientConfig.getOobInline());

代码示例来源:origin: ltsopensource/light-task-scheduler

socketChannel.socket().setOOBInline(clientConfig.getOobInline());

代码示例来源:origin: stackoverflow.com

delegate.setOOBInline(oobinline);

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

if (optionMap.contains(Options.TCP_OOB_INLINE)) channel.socket().setOOBInline(optionMap.get(Options.TCP_OOB_INLINE, false));
if (optionMap.contains(Options.TCP_NODELAY)) channel.socket().setTcpNoDelay(optionMap.get(Options.TCP_NODELAY, false));
if (optionMap.contains(Options.IP_TRAFFIC_CLASS)) channel.socket().setTrafficClass(optionMap.get(Options.IP_TRAFFIC_CLASS, -1));

代码示例来源:origin: stackoverflow.com

delegate.setOOBInline(oobinline);

代码示例来源:origin: stackoverflow.com

delegate.setOOBInline(oobinline);

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

try {
  channel.configureBlocking(false);
  if (optionMap.contains(Options.TCP_OOB_INLINE)) channel.socket().setOOBInline(optionMap.get(Options.TCP_OOB_INLINE, false));
  if (optionMap.contains(Options.TCP_NODELAY)) channel.socket().setTcpNoDelay(optionMap.get(Options.TCP_NODELAY, false));
  if (optionMap.contains(Options.IP_TRAFFIC_CLASS)) channel.socket().setTrafficClass(optionMap.get(Options.IP_TRAFFIC_CLASS, -1));

代码示例来源:origin: camunda/camunda-bpm-platform

@Override
public void setOOBInline(boolean on) throws SocketException {
  socket.setOOBInline(on);
}

代码示例来源:origin: com.sun.mail/javax.mail

@Override
public void setOOBInline(boolean on) throws SocketException {
  socket.setOOBInline(on);
}

代码示例来源:origin: com.amazonaws/aws-java-sdk-core

@Override
public void setOOBInline(boolean on) throws SocketException {
  sock.setOOBInline(on);
}

代码示例来源:origin: apache/mina

/**
 * {@inheritDoc}
 */
@Override
public void setOobInline(boolean oobInline) {
  LOG.debug("set oob inline '{}' for session '{}'", oobInline, this);
  try {
    socket.setOOBInline(oobInline);
  } catch (SocketException e) {
    throw new ConfigurationException(e);
  }
}

相关文章

微信公众号

最新文章

更多