src/java.base/share/classes/sun/net/PlatformSocketImpl.java
branchniosocketimpl-branch
changeset 57178 738431fa8fb2
parent 57176 726630bc6a4c
child 57190 4964feb6d75d
equal deleted inserted replaced
57177:0b5ebb227a8d 57178:738431fa8fb2
    32  */
    32  */
    33 
    33 
    34 public interface PlatformSocketImpl {
    34 public interface PlatformSocketImpl {
    35 
    35 
    36     /**
    36     /**
    37      * Creates a new instance of this SocketImpl.
       
    38      */
       
    39     <S extends SocketImpl & PlatformSocketImpl> S newInstance(boolean server);
       
    40 
       
    41     /**
       
    42      * Invoked by ServerSocket to fix up the SocketImpl state after a connection
    37      * Invoked by ServerSocket to fix up the SocketImpl state after a connection
    43      * is accepted by a custom SocketImpl
    38      * is accepted by a custom SocketImpl
    44      */
    39      */
    45     void postCustomAccept() throws IOException;
    40     void postCustomAccept() throws IOException;
    46 
    41