jdk/src/share/classes/com/sun/nio/sctp/SctpStandardSocketOptions.java
changeset 11823 ee83ae88512d
parent 9679 d98ae8bc45fc
child 14342 8435a30053c1
equal deleted inserted replaced
11689:ffbfda5c3886 11823:ee83ae88512d
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 package com.sun.nio.sctp;
    25 package com.sun.nio.sctp;
    26 
    26 
    27 import java.net.SocketAddress;
    27 import java.net.SocketAddress;
    28 import sun.nio.ch.SctpStdSocketOption;
    28 import sun.nio.ch.sctp.SctpStdSocketOption;
    29 
    29 
    30 /**
    30 /**
    31  * SCTP channels supports the socket options defined by this class
    31  * SCTP channels supports the socket options defined by this class
    32  * (as well as those listed in the particular channel class) and may support
    32  * (as well as those listed in the particular channel class) and may support
    33  * additional Implementation specific socket options.
    33  * additional Implementation specific socket options.
    48      * <P> It is implementation specific whether or not this option is
    48      * <P> It is implementation specific whether or not this option is
    49      * supported.
    49      * supported.
    50      */
    50      */
    51     public static final SctpSocketOption<Boolean> SCTP_DISABLE_FRAGMENTS = new
    51     public static final SctpSocketOption<Boolean> SCTP_DISABLE_FRAGMENTS = new
    52         SctpStdSocketOption<Boolean>("SCTP_DISABLE_FRAGMENTS", Boolean.class,
    52         SctpStdSocketOption<Boolean>("SCTP_DISABLE_FRAGMENTS", Boolean.class,
    53         sun.nio.ch.SctpStdSocketOption.SCTP_DISABLE_FRAGMENTS);
    53         sun.nio.ch.sctp.SctpStdSocketOption.SCTP_DISABLE_FRAGMENTS);
    54 
    54 
    55     /**
    55     /**
    56      * Enables or disables explicit message completion.
    56      * Enables or disables explicit message completion.
    57      *
    57      *
    58      * <p> The value of this socket option is a {@code Boolean} that represents
    58      * <p> The value of this socket option is a {@code Boolean} that represents
    67      * option is disabled. It is implementation specific whether or not this
    67      * option is disabled. It is implementation specific whether or not this
    68      * option is supported.
    68      * option is supported.
    69      */
    69      */
    70     public static final SctpSocketOption<Boolean> SCTP_EXPLICIT_COMPLETE = new
    70     public static final SctpSocketOption<Boolean> SCTP_EXPLICIT_COMPLETE = new
    71         SctpStdSocketOption<Boolean>("SCTP_EXPLICIT_COMPLETE", Boolean.class,
    71         SctpStdSocketOption<Boolean>("SCTP_EXPLICIT_COMPLETE", Boolean.class,
    72         sun.nio.ch.SctpStdSocketOption.SCTP_EXPLICIT_COMPLETE);
    72         sun.nio.ch.sctp.SctpStdSocketOption.SCTP_EXPLICIT_COMPLETE);
    73 
    73 
    74     /**
    74     /**
    75      * Fragmented interleave controls how the presentation of messages occur
    75      * Fragmented interleave controls how the presentation of messages occur
    76      * for the message receiver. There are three levels of fragment interleave
    76      * for the message receiver. There are three levels of fragment interleave
    77      * defined. Two of the levels effect {@link SctpChannel}, while
    77      * defined. Two of the levels effect {@link SctpChannel}, while
   118      * supported.
   118      * supported.
   119      */
   119      */
   120     public static final SctpSocketOption<Integer> SCTP_FRAGMENT_INTERLEAVE =
   120     public static final SctpSocketOption<Integer> SCTP_FRAGMENT_INTERLEAVE =
   121             new SctpStdSocketOption<Integer>("SCTP_FRAGMENT_INTERLEAVE",
   121             new SctpStdSocketOption<Integer>("SCTP_FRAGMENT_INTERLEAVE",
   122                   Integer.class,
   122                   Integer.class,
   123                   sun.nio.ch.SctpStdSocketOption.SCTP_FRAGMENT_INTERLEAVE);
   123                   sun.nio.ch.sctp.SctpStdSocketOption.SCTP_FRAGMENT_INTERLEAVE);
   124 
   124 
   125     /**
   125     /**
   126      * The maximum number of streams requested by the local endpoint during
   126      * The maximum number of streams requested by the local endpoint during
   127      * association initialization.
   127      * association initialization.
   128      *
   128      *
   169      * <em>The Nagle Algorithm</em> to coalesce short segments and
   169      * <em>The Nagle Algorithm</em> to coalesce short segments and
   170      * improve network efficiency.
   170      * improve network efficiency.
   171      */
   171      */
   172     public static final SctpSocketOption<Boolean> SCTP_NODELAY =
   172     public static final SctpSocketOption<Boolean> SCTP_NODELAY =
   173         new SctpStdSocketOption<Boolean>("SCTP_NODELAY", Boolean.class,
   173         new SctpStdSocketOption<Boolean>("SCTP_NODELAY", Boolean.class,
   174         sun.nio.ch.SctpStdSocketOption.SCTP_NODELAY);
   174         sun.nio.ch.sctp.SctpStdSocketOption.SCTP_NODELAY);
   175 
   175 
   176     /**
   176     /**
   177      * Requests that the local SCTP stack use the given peer address as
   177      * Requests that the local SCTP stack use the given peer address as
   178      * the association primary.
   178      * the association primary.
   179      *
   179      *
   244      * socket send buffer to be changed after the socket is bound is system
   244      * socket send buffer to be changed after the socket is bound is system
   245      * dependent.
   245      * dependent.
   246      */
   246      */
   247     public static final SctpSocketOption<Integer> SO_SNDBUF =
   247     public static final SctpSocketOption<Integer> SO_SNDBUF =
   248         new SctpStdSocketOption<Integer>("SO_SNDBUF", Integer.class,
   248         new SctpStdSocketOption<Integer>("SO_SNDBUF", Integer.class,
   249         sun.nio.ch.SctpStdSocketOption.SO_SNDBUF);
   249         sun.nio.ch.sctp.SctpStdSocketOption.SO_SNDBUF);
   250 
   250 
   251     /**
   251     /**
   252      * The size of the socket receive buffer.
   252      * The size of the socket receive buffer.
   253      *
   253      *
   254      * <P> The value of this socket option is an {@code Integer} that is the
   254      * <P> The value of this socket option is an {@code Integer} that is the
   271      * socket receive buffer to be changed after the socket is bound is system
   271      * socket receive buffer to be changed after the socket is bound is system
   272      * dependent.
   272      * dependent.
   273      */
   273      */
   274     public static final SctpSocketOption<Integer> SO_RCVBUF =
   274     public static final SctpSocketOption<Integer> SO_RCVBUF =
   275         new SctpStdSocketOption<Integer>("SO_RCVBUF", Integer.class,
   275         new SctpStdSocketOption<Integer>("SO_RCVBUF", Integer.class,
   276         sun.nio.ch.SctpStdSocketOption.SO_RCVBUF);
   276         sun.nio.ch.sctp.SctpStdSocketOption.SO_RCVBUF);
   277 
   277 
   278     /**
   278     /**
   279      * Linger on close if data is present.
   279      * Linger on close if data is present.
   280      *
   280      *
   281      * <p> The value of this socket option is an {@code Integer} that controls
   281      * <p> The value of this socket option is an {@code Integer} that controls
   302      * greater than its maximum value causes the linger interval to be set to
   302      * greater than its maximum value causes the linger interval to be set to
   303      * its maximum value.
   303      * its maximum value.
   304      */
   304      */
   305     public static final SctpSocketOption<Integer> SO_LINGER =
   305     public static final SctpSocketOption<Integer> SO_LINGER =
   306         new SctpStdSocketOption<Integer>("SO_LINGER", Integer.class,
   306         new SctpStdSocketOption<Integer>("SO_LINGER", Integer.class,
   307         sun.nio.ch.SctpStdSocketOption.SO_LINGER);
   307         sun.nio.ch.sctp.SctpStdSocketOption.SO_LINGER);
   308 
   308 
   309     /**
   309     /**
   310      * This class is used to set the maximum number of inbound/outbound streams
   310      * This class is used to set the maximum number of inbound/outbound streams
   311      * used by the local endpoint during association initialization. An
   311      * used by the local endpoint during association initialization. An
   312      * instance of this class is used to set the {@link
   312      * instance of this class is used to set the {@link