src/java.base/share/classes/java/net/AbstractPlainSocketImpl.java
branchniosocketimpl-branch
changeset 57176 726630bc6a4c
parent 57174 899641440751
child 57178 738431fa8fb2
equal deleted inserted replaced
57175:7eb6cdd1204a 57176:726630bc6a4c
    37 import java.util.HashSet;
    37 import java.util.HashSet;
    38 import java.util.Set;
    38 import java.util.Set;
    39 
    39 
    40 import sun.net.ConnectionResetException;
    40 import sun.net.ConnectionResetException;
    41 import sun.net.NetHooks;
    41 import sun.net.NetHooks;
       
    42 import sun.net.PlatformSocketImpl;
    42 import sun.net.ResourceManager;
    43 import sun.net.ResourceManager;
    43 import sun.net.TrustedSocketImpl;
       
    44 import sun.net.util.SocketExceptions;
    44 import sun.net.util.SocketExceptions;
    45 
    45 
    46 /**
    46 /**
    47  * Default Socket Implementation. This implementation does
    47  * Default Socket Implementation. This implementation does
    48  * not implement any security checks.
    48  * not implement any security checks.
    49  * Note this class should <b>NOT</b> be public.
    49  * Note this class should <b>NOT</b> be public.
    50  *
    50  *
    51  * @author  Steven B. Byrne
    51  * @author  Steven B. Byrne
    52  */
    52  */
    53 abstract class AbstractPlainSocketImpl extends SocketImpl implements TrustedSocketImpl {
    53 abstract class AbstractPlainSocketImpl extends SocketImpl implements PlatformSocketImpl {
    54     /* instance variable for SO_TIMEOUT */
    54     /* instance variable for SO_TIMEOUT */
    55     int timeout;   // timeout in millisec
    55     int timeout;   // timeout in millisec
    56     // traffic class
    56     // traffic class
    57     private int trafficClass;
    57     private int trafficClass;
    58 
    58 
   732         socketClose0(false);
   732         socketClose0(false);
   733     }
   733     }
   734 
   734 
   735     @Override
   735     @Override
   736     @SuppressWarnings("unchecked")
   736     @SuppressWarnings("unchecked")
   737     public <S extends SocketImpl & TrustedSocketImpl> S newInstance(boolean server) {
   737     public <S extends SocketImpl & PlatformSocketImpl> S newInstance(boolean server) {
   738         return (S) new PlainSocketImpl();
   738         return (S) new PlainSocketImpl();
   739     }
   739     }
   740 
   740 
   741     @Override
   741     @Override
   742     public void postCustomAccept() {
   742     public void postCustomAccept() {