258259260261262263264265
ch.socket().setSoLinger(false, 0); } else { ch.socket().setSoLinger(true, linger); } } catch (SocketException e) { throw new RuntimeIOException(e); } }
266267268269270271272273
public boolean isTcpNoDelay() { try { return ch.socket().getTcpNoDelay(); } catch (SocketException e) { throw new RuntimeIOException(e); } }
274275276277278279280281
public void setTcpNoDelay(boolean on) { try { ch.socket().setTcpNoDelay(on); } catch (SocketException e) { throw new RuntimeIOException(e); } }
285286287288289290291292293294295
try { return ch.socket().getTrafficClass(); } catch (SocketException e) { // Throw an exception only when setTrafficClass is also available. if (SocketSessionConfigImpl.isSetTrafficClassAvailable()) { throw new RuntimeIOException(e); } } } return 0;
298299300301302303304305306
public void setTrafficClass(int tc) { if (SocketSessionConfigImpl.isSetTrafficClassAvailable()) { try { ch.socket().setTrafficClass(tc); } catch (SocketException e) { throw new RuntimeIOException(e); } } }
307308309310311312313314
public int getSendBufferSize() { try { return ch.socket().getSendBufferSize(); } catch (SocketException e) { throw new RuntimeIOException(e); } }
316317318319320321322323324
public void setSendBufferSize(int size) { if (SocketSessionConfigImpl.isSetSendBufferSizeAvailable()) { try { ch.socket().setSendBufferSize(size); } catch (SocketException e) { throw new RuntimeIOException(e); } } }
325326327328329330331332
public int getReceiveBufferSize() { try { return ch.socket().getReceiveBufferSize(); } catch (SocketException e) { throw new RuntimeIOException(e); } }
334335336337338339340341342
public void setReceiveBufferSize(int size) { if (SocketSessionConfigImpl.isSetReceiveBufferSizeAvailable()) { try { ch.socket().setReceiveBufferSize(size); } catch (SocketException e) { throw new RuntimeIOException(e); } } }
223224225226227228229230
{ return ch.socket().getKeepAlive(); } catch( SocketException e ) { throw new RuntimeIOException( e ); } }