本文整理了Java中java.net.Socket.getOOBInline()
方法的一些代码示例,展示了Socket.getOOBInline()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Socket.getOOBInline()
方法的具体详情如下:
包路径:java.net.Socket
类名称:Socket
方法名:getOOBInline
[英]Returns this socket's SocketOptions#SO_OOBINLINE setting.
[中]返回此套接字的SocketOptions#SO_OOBINLINE设置。
代码示例来源:origin: aws/aws-sdk-java
@Override
public boolean getOOBInline() throws SocketException {
return sock.getOOBInline();
}
代码示例来源:origin: apache/zookeeper
/**
* See {@link Socket#getOOBInline()}. Calling this method does not trigger mode detection.
*/
@Override
public boolean getOOBInline() throws SocketException {
return getSocketAllowUnknownMode().getOOBInline();
}
代码示例来源:origin: wildfly/wildfly
public <T> T getOption(final Option<T> option) throws IOException {
if (option == Options.CLOSE_ABORT) {
return option.cast(Boolean.valueOf(conduit.getSocketChannel().socket().getSoLinger() == 0));
} else if (option == Options.IP_TRAFFIC_CLASS) {
return option.cast(Integer.valueOf(conduit.getSocketChannel().socket().getTrafficClass()));
} else if (option == Options.KEEP_ALIVE) {
return option.cast(Boolean.valueOf(conduit.getSocketChannel().socket().getKeepAlive()));
} else if (option == Options.READ_TIMEOUT) {
return option.cast(Integer.valueOf(conduit.getReadTimeout()));
} else if (option == Options.RECEIVE_BUFFER) {
return option.cast(Integer.valueOf(conduit.getSocketChannel().socket().getReceiveBufferSize()));
} else if (option == Options.SEND_BUFFER) {
return option.cast(Integer.valueOf(conduit.getSocketChannel().socket().getSendBufferSize()));
} else if (option == Options.TCP_NODELAY) {
return option.cast(Boolean.valueOf(conduit.getSocketChannel().socket().getTcpNoDelay()));
} else if (option == Options.TCP_OOB_INLINE) {
return option.cast(Boolean.valueOf(conduit.getSocketChannel().socket().getOOBInline()));
} else if (option == Options.WRITE_TIMEOUT) {
return option.cast(Integer.valueOf(conduit.getWriteTimeout()));
} else {
return null;
}
}
代码示例来源:origin: wildfly/wildfly
conduit.getSocketChannel().socket().setTcpNoDelay(Options.TCP_NODELAY.cast(value, Boolean.FALSE).booleanValue());
} 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) {
代码示例来源:origin: stackoverflow.com
return delegate.getOOBInline();
代码示例来源:origin: stackoverflow.com
return delegate.getOOBInline();
代码示例来源:origin: stackoverflow.com
return delegate.getOOBInline();
代码示例来源:origin: com.amazonaws/aws-java-sdk-core
@Override
public boolean getOOBInline() throws SocketException {
return sock.getOOBInline();
}
代码示例来源:origin: camunda/camunda-bpm-platform
@Override
public boolean getOOBInline() throws SocketException {
return socket.getOOBInline();
}
代码示例来源:origin: com.sun.mail/javax.mail
@Override
public boolean getOOBInline() throws SocketException {
return socket.getOOBInline();
}
代码示例来源:origin: spring-projects/spring-integration
public boolean getOOBInline() throws SocketException {
return this.socket.getOOBInline();
}
代码示例来源:origin: apache/mina
/**
* {@inheritDoc}
*/
@Override
public Boolean isOobInline() {
try {
return socket.getOOBInline();
} catch (SocketException e) {
throw new ConfigurationException(e);
}
}
代码示例来源:origin: org.apache.logging.log4j/log4j-core
Assert.assertEquals(false, socket.getOOBInline());
Assert.assertEquals(false, socket.getReuseAddress());
Assert.assertEquals(false, socket.getTcpNoDelay());
代码示例来源:origin: jitsi/ice4j
/**
* {@inheritDoc}
*/
@Override
public boolean getOOBInline() throws SocketException
{
return
(delegate == null) ? super.getOOBInline() : delegate.getOOBInline();
}
代码示例来源:origin: org.jboss/jboss-common-core
public boolean getOOBInline() throws SocketException
{
return s.getOOBInline();
}
代码示例来源:origin: ibinti/bugvm
@Override
public boolean getOOBInline() throws SocketException {
return socket.getOOBInline();
}
代码示例来源:origin: org.apache.mina/mina-core
/**
* {@inheritDoc}
*/
@Override
public boolean isOobInline() {
try {
return getSocket().getOOBInline();
} catch (SocketException e) {
throw new RuntimeIoException(e);
}
}
代码示例来源:origin: org.wso2.org.apache.mina/mina-core
public boolean isOobInline() {
try {
return ch.socket().getOOBInline();
} catch (SocketException e) {
throw new RuntimeIOException(e);
}
}
代码示例来源:origin: org.wildfly.openssl/wildfly-openssl
@Override
public boolean getOOBInline() throws SocketException {
if (delegate == null) {
return super.getOOBInline();
} else {
return delegate.getOOBInline();
}
}
代码示例来源:origin: org.wildfly.openssl/wildfly-openssl-java
@Override
public boolean getOOBInline() throws SocketException {
if (delegate == null) {
return super.getOOBInline();
} else {
return delegate.getOOBInline();
}
}
内容来源于网络,如有侵权,请联系作者删除!