src/java.base/share/classes/java/nio/channels/ServerSocketChannel.java
branchunixdomainchannels
changeset 59074 7917f95f74c4
parent 58981 5c79956cc7d7
child 59076 998df1368cca
equal deleted inserted replaced
59073:832b8a28e17f 59074:7917f95f74c4
    51  * <i>IP</i> channels are created using {@link #open()}. They use {@link
    51  * <i>IP</i> channels are created using {@link #open()}. They use {@link
    52  * InetSocketAddress} addresses and support both IPv4 and IPv6 TCP/IP.
    52  * InetSocketAddress} addresses and support both IPv4 and IPv6 TCP/IP.
    53  * <i>Unix Domain</i> channels are created using {@link #open(ProtocolFamily)}
    53  * <i>Unix Domain</i> channels are created using {@link #open(ProtocolFamily)}
    54  * with the family parameter set to {@link StandardProtocolFamily#UNIX}.
    54  * with the family parameter set to {@link StandardProtocolFamily#UNIX}.
    55  * They use {@link UnixDomainSocketAddress}es and also
    55  * They use {@link UnixDomainSocketAddress}es and also
    56  * do not support the {@link #socket()} method.
    56  * do not support the {@link #socket()} method. Note, it is also possible to
       
    57  * create channels that support either IPv4 or IPv6 only through the
       
    58  * {@link #open(ProtocolFamily)} method.
    57  *
    59  *
    58  * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
    60  * <p> Socket options are configured using the {@link #setOption(SocketOption,Object)
    59  * setOption} method. <i>IP</i> server-socket channels support the following options:
    61  * setOption} method. <i>IP</i> server-socket channels support the following options:
    60  * <blockquote>
    62  * <blockquote>
    61  * <table class="striped">
    63  * <table class="striped">
   131     /**
   133     /**
   132      * Returns a {@link ServerSocketChannel} of the given protocol family.
   134      * Returns a {@link ServerSocketChannel} of the given protocol family.
   133      * Where family is equal to {@link StandardProtocolFamily#INET} or {@link
   135      * Where family is equal to {@link StandardProtocolFamily#INET} or {@link
   134      * StandardProtocolFamily#INET6} the returned channel must be bound to an
   136      * StandardProtocolFamily#INET6} the returned channel must be bound to an
   135      * {@link InetSocketAddress}. If family is {@link StandardProtocolFamily#UNIX}
   137      * {@link InetSocketAddress}. If family is {@link StandardProtocolFamily#UNIX}
   136      * the returned channel must be bound to a {@link jdk.net.UnixDomainSocketAddress}
   138      * the returned channel must be bound to a {@link UnixDomainSocketAddress}.
   137      *
   139      *
   138      * @param family the protocol family
   140      * @param family the protocol family
   139      *
   141      *
   140      * @return a ServerSocketChannel
   142      * @return a ServerSocketChannel
   141      *
   143      *