|
JavaTM SCTP API DRAFT ea-b11 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.sun.nio.sctp.SctpStandardSocketOption.InitMaxStreams
public static class SctpStandardSocketOption.InitMaxStreams extends Object
This class is used to set the maximum number of inbound/outbound streams
used by the local endpoint during association initialization. An
instance of this class is used to set the SCTP_INIT_MAXSTREAMS
socket option.
| Method Summary | |
|---|---|
static SctpStandardSocketOption.InitMaxStreams |
create(int maxInStreams,
int maxOutStreams)
Creates an InitMaxStreams instance. |
boolean |
equals(Object obj)
Returns true if the specified object is another InitMaxStreams
instance with the same number of in and out bound streams. |
int |
hashCode()
Returns a hash code value for this init max streams. |
int |
maxInStreams()
Returns the maximum number of inbound streams. |
int |
maxOutStreams()
Returns the maximum number of outbound streams. |
String |
toString()
Returns a string representation of this init max streams, including the maximum in and out bound streams. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static SctpStandardSocketOption.InitMaxStreams create(int maxInStreams,
int maxOutStreams)
maxInStreams - The maximum number of inbound streams, where
0 <= maxInStreams <= 65536maxOutStreams - The maximum number of outbound streams, where
0 <= maxOutStreams <= 65536InitMaxStreams instanceIllegalArgumentException - If an argument is outside of specified boundspublic int maxInStreams()
public int maxOutStreams()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
InitMaxStreams
instance with the same number of in and out bound streams.
equals in class Objectobj - The object to be compared with this init max streamsInitMaxStreams instance with the same number of in
and out bound streamsObject.hashCode(),
HashMappublic int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)
|
JavaTM SCTP API DRAFT ea-b11 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||