289290291292293294295296297
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
198199200201202203204205
SocketSessionConfig { public boolean isKeepAlive() { try { return ch.socket().getKeepAlive(); } catch (SocketException e) { throw new RuntimeIOException(e); } }
206207208209210211212213
public void setKeepAlive(boolean on) { try { ch.socket().setKeepAlive(on); } catch (SocketException e) { throw new RuntimeIOException(e); } }
214215216217218219220221
public boolean isOobInline() { try { return ch.socket().getOOBInline(); } catch (SocketException e) { throw new RuntimeIOException(e); } }
222223224225226227228229
public void setOobInline(boolean on) { try { ch.socket().setOOBInline(on); } catch (SocketException e) { throw new RuntimeIOException(e); } }
230231232233234235236237
public boolean isReuseAddress() { try { return ch.socket().getReuseAddress(); } catch (SocketException e) { throw new RuntimeIOException(e); } }
238239240241242243244245
public void setReuseAddress(boolean on) { try { ch.socket().setReuseAddress(on); } catch (SocketException e) { throw new RuntimeIOException(e); } }
246247248249250251252253
public int getSoLinger() { try { return ch.socket().getSoLinger(); } catch (SocketException e) { throw new RuntimeIOException(e); } }