jdk/src/share/classes/sun/nio/ch/SocketAdaptor.java
changeset 6117 471ae95609d5
parent 5784 e565c553e9fc
child 7668 d4a77089c587
equal deleted inserted replaced
6116:3880a05ff32e 6117:471ae95609d5
   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     }