equal
deleted
inserted
replaced
334 public int getSoLinger() throws SocketException { |
334 public int getSoLinger() throws SocketException { |
335 return getIntOption(StandardSocketOption.SO_LINGER); |
335 return getIntOption(StandardSocketOption.SO_LINGER); |
336 } |
336 } |
337 |
337 |
338 public void sendUrgentData(int data) throws IOException { |
338 public void sendUrgentData(int data) throws IOException { |
339 throw new SocketException("Urgent data not supported"); |
339 synchronized (sc.blockingLock()) { |
|
340 if (!sc.isBlocking()) |
|
341 throw new IllegalBlockingModeException(); |
|
342 int n = sc.sendOutOfBandData((byte)data); |
|
343 assert n == 1; |
|
344 } |
340 } |
345 } |
341 |
346 |
342 public void setOOBInline(boolean on) throws SocketException { |
347 public void setOOBInline(boolean on) throws SocketException { |
343 setBooleanOption(ExtendedSocketOption.SO_OOBINLINE, on); |
348 setBooleanOption(ExtendedSocketOption.SO_OOBINLINE, on); |
344 } |
349 } |