Package | Description |
---|---|
org.snf4j.core |
Provides interfaces and classes implementing the core functionalities of the
API.
|
org.snf4j.core.handler |
Provides interfaces and classes for implementing sessions' handlers.
|
org.snf4j.core.session |
Provides classes and interfaces used for session handling.
|
Modifier and Type | Method and Description |
---|---|
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(com.sun.nio.sctp.Association association,
int streamNumber)
Creates an immutable
MessageInfo with specified association, stream
number, and the peer primary address as the preferred peer address of the
association to send the message to. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(com.sun.nio.sctp.Association association,
int streamNumber,
int payloadProtocolID)
Creates an immutable
MessageInfo with specified association, stream
number, payload protocol identifier and the peer primary address as the
preferred peer address of the association to send the message to. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(com.sun.nio.sctp.Association association,
int streamNumber,
int payloadProtocolID,
boolean unordered)
Creates an immutable
MessageInfo with specified association, stream
number, payload protocol identifier, unordered flag and the peer primary
address as the preferred peer address of the association to send the message
to. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(com.sun.nio.sctp.Association association,
SocketAddress address,
int streamNumber)
Creates an immutable
MessageInfo with specified association, stream
number and the preferred peer address of the association to send the message
to. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(com.sun.nio.sctp.Association association,
SocketAddress address,
int streamNumber,
int payloadProtocolID)
Creates an immutable
MessageInfo with specified association, stream
number, payload protocol identifier and the preferred peer address of the
association to send the message to. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(com.sun.nio.sctp.Association association,
SocketAddress address,
int streamNumber,
int payloadProtocolID,
boolean unordered)
Creates an immutable
MessageInfo with specified association, stream
number, payload protocol identifier, unordered flag and the preferred peer
address of the association to send the message to. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(int streamNumber)
Creates an immutable
MessageInfo with specified stream number and
the peer primary address as the preferred peer address. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(int streamNumber,
int payloadProtocolID)
Creates an immutable
MessageInfo with specified stream number,
payload protocol identifier and the peer primary address as the
preferred peer address. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(int streamNumber,
int payloadProtocolID,
boolean unordered)
Creates an immutable
MessageInfo with specified stream number,
payload protocol identifier, unordered flag and the peer primary address as
the preferred peer address. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(com.sun.nio.sctp.MessageInfo msgInfo)
Creates an immutable
MessageInfo that is cloned from the specified
MessageInfo instance. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(SocketAddress address,
int streamNumber)
Creates an immutable
MessageInfo with specified stream number and
the preferred peer address. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(SocketAddress address,
int streamNumber,
int payloadProtocolID)
Creates an immutable
MessageInfo with specified stream number,
payload protocol identifier and the preferred peer address. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.create(SocketAddress address,
int streamNumber,
int payloadProtocolID,
boolean unordered)
Creates an immutable
MessageInfo with specified stream number,
payload protocol identifier, unordered flag and the preferred peer address. |
static ImmutableSctpMessageInfo |
ImmutableSctpMessageInfo.wrap(com.sun.nio.sctp.MessageInfo msgInfo)
Wraps the specified
MessageInfo instance. |
Modifier and Type | Method and Description |
---|---|
ImmutableSctpMessageInfo |
SctpSendingFailureException.getMessageInfo()
Returns the immutable ancillary data about the message that was to be sent
|
Constructor and Description |
---|
SctpSendingFailureException(ByteBuffer buffer,
ImmutableSctpMessageInfo msgInfo,
Throwable cause)
Constructs an exception with the message that was to be sent along with the
immutable ancillary data about the message and the cause of the failure.
|
Modifier and Type | Method and Description |
---|---|
IFuture<Void> |
ISctpSession.write(byte[] msg,
ImmutableSctpMessageInfo msgInfo)
Writes a message from the specified byte array to the SCTP channel that is
associated with this session.
|
IFuture<Void> |
ISctpSession.write(byte[] msg,
int offset,
int length,
ImmutableSctpMessageInfo msgInfo)
Writes a message of given length from the specified byte array to the SCTP
channel that is associated with this session.
|
IFuture<Void> |
ISctpSession.write(ByteBuffer msg,
ImmutableSctpMessageInfo msgInfo)
Writes a message from the specified byte buffer to the SCTP channel that is
associated with this session.
|
IFuture<Void> |
ISctpSession.write(ByteBuffer msg,
int length,
ImmutableSctpMessageInfo msgInfo)
Writes a message of given length from the specified byte buffer to the SCTP
channel that is associated with this session.
|
IFuture<Void> |
ISctpSession.write(Object msg,
ImmutableSctpMessageInfo msgInfo)
Writes a message to the SCTP channel that is associated with this session.
|
void |
ISctpSession.writenf(byte[] msg,
ImmutableSctpMessageInfo msgInfo)
Writes a message from the specified byte array to the SCTP channel that is
associated with this session.
|
void |
ISctpSession.writenf(byte[] msg,
int offset,
int length,
ImmutableSctpMessageInfo msgInfo)
Writes a message of given length from the specified byte array to the SCTP
channel that is associated with this session.
|
void |
ISctpSession.writenf(ByteBuffer msg,
ImmutableSctpMessageInfo msgInfo)
Writes a message from the specified byte buffer to the SCTP channel that is
associated with this session.
|
void |
ISctpSession.writenf(ByteBuffer msg,
int length,
ImmutableSctpMessageInfo msgInfo)
Writes a message of given length from the specified byte buffer to the SCTP
channel that is associated with this session.
|
void |
ISctpSession.writenf(Object msg,
ImmutableSctpMessageInfo msgInfo)
Writes a message to the SCTP channel that is associated with this session.
|
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.