public class Sctp extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MSG_NOTIFICATION
SCTP notification
|
| Constructor and Description |
|---|
Sctp() |
| Modifier and Type | Method and Description |
|---|---|
static SctpSocket |
createSocket(int localPort)
Creates new SctpSocket for given SCTP port.
|
static void |
finish()
Disposes of the resources held by native counterpart.
|
static void |
init()
Initializes native SCTP counterpart.
|
static void |
onSctpInboundPacket(long socketAddr,
byte[] data,
int sid,
int ssn,
int tsn,
long ppid,
int context,
int flags)
Method fired by native counterpart to notify about incoming data.
|
static int |
onSctpOutboundPacket(long socketAddr,
byte[] data,
int tos,
int set_df)
Method fired by native counterpart when SCTP stack wants to send
network packet.
|
public static final int MSG_NOTIFICATION
public static SctpSocket createSocket(int localPort)
localPort - local SCTP socket port.public static void finish()
throws IOException
IOException - if usrsctp stack has failed to shutdown.public static void init()
public static void onSctpInboundPacket(long socketAddr,
byte[] data,
int sid,
int ssn,
int tsn,
long ppid,
int context,
int flags)
socketAddr - native socket pointerdata - buffer holding received datasid - stream idssn - tsn - ppid - payload protocol identifiercontext - flags - public static int onSctpOutboundPacket(long socketAddr,
byte[] data,
int tos,
int set_df)
socketAddr - native socket pointerdata - buffer holding packet datatos - type of service???set_df - use IP don't fragment optionCopyright © 2021 jitsi.org. All rights reserved.