288289290291292293294295296
public void setTrafficClass(int trafficClass) { if (DatagramSessionConfigImpl.isSetTrafficClassAvailable()) { try { ch.socket().setTrafficClass(trafficClass); } catch (SocketException e) { throw new RuntimeIOException(e); } } }
119120121122123124125126127128129
synchronized (request) { while (!request.done) { try { request.wait(); } catch (InterruptedException e) { throw new RuntimeIOException(e); } } } if (request.exception != null) {
155156157158159160161162163164165
221222223224225226227228
SocketSessionConfig { public boolean isKeepAlive() { try { return ch.socket().getKeepAlive(); } catch (SocketException e) { throw new RuntimeIOException(e); } }
229230231232233234235236
public void setKeepAlive(boolean on) { try { ch.socket().setKeepAlive(on); } catch (SocketException e) { throw new RuntimeIOException(e); } }
237238239240241242243244
public boolean isOobInline() { try { return ch.socket().getOOBInline(); } catch (SocketException e) { throw new RuntimeIOException(e); } }
245246247248249250251252
public void setOobInline(boolean on) { try { ch.socket().setOOBInline(on); } catch (SocketException e) { throw new RuntimeIOException(e); } }
253254255256257258259260
public boolean isReuseAddress() { try { return ch.socket().getReuseAddress(); } catch (SocketException e) { throw new RuntimeIOException(e); } }
261262263264265266267268
public void setReuseAddress(boolean on) { try { ch.socket().setReuseAddress(on); } catch (SocketException e) { throw new RuntimeIOException(e); } }
269270271272273274275276
public int getSoLinger() { try { return ch.socket().getSoLinger(); } catch (SocketException e) { throw new RuntimeIOException(e); } }