A send failed notification indicates that a message cannot be delivered.
Typically, this is because the association has been shutdown with unsent data
in the socket output buffer, or in the case of a SctpMultiChannel
the association failed to setup.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract SocketAddress | Returns: The peer primary address of the association or the address that the message was sent toReturns the address. |
| public abstract Association | Returns: The association that failed to send, ornull if
there is no association, that is, the notification follows a
com.sun.nio.sctp.AssociationChangeNotification.AssocChangeEvent#CANT_STARTRedeclares com. Returns the association that this notification is applicable to. |
| public abstract ByteBuffer | Returns: The user data. The buffers position will be0 and its
limit will be set to the end of the data.Returns the data that was to be sent. |
| public abstract int | |
| public abstract int | Returns: The stream numberReturns the stream number that the message was to be sent on. |
| SendFailedNotification | back to summary |
|---|---|
| protected SendFailedNotification() Initializes a new instance of this class. | |
| address | back to summary |
|---|---|
| public abstract SocketAddress address() Returns the address.
| |
| association | back to summary |
|---|---|
| public abstract Association association() Redeclares com. Returns the association that this notification is applicable to.
| |
| buffer | back to summary |
|---|---|
| public abstract ByteBuffer buffer() Returns the data that was to be sent.
| |
| errorCode | back to summary |
|---|---|
| public abstract int errorCode() Returns the error code. The errorCode gives the reason why the send failed, and if set, will be a SCTP protocol error code as defined in RFC2960 section 3.3.10
| |
| streamNumber | back to summary |
|---|---|
| public abstract int streamNumber() Returns the stream number that the message was to be sent on.
| |