public class UdpLink extends Object implements NetworkLink
| Constructor and Description |
|---|
UdpLink(SctpSocket sctpSocket,
String localIp,
int localPort,
String remoteIp,
int remotePort)
Creates new instance of UdpConnection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onConnOut(SctpSocket s,
byte[] packetData)
Callback triggered by SctpSocket whenever it wants to send some
network packet.
|
public UdpLink(SctpSocket sctpSocket, String localIp, int localPort, String remoteIp, int remotePort) throws IOException
sctpSocket - SCTP socket instance used by this connection.localIp - local IP address.localPort - local UDP port.remoteIp - remote address.remotePort - destination UDP port.IOException - when we fail to resolve any of addresses
or when opening UDP socket.public void onConnOut(SctpSocket s, byte[] packetData) throws IOException
onConnOut in interface NetworkLinks - source SctpSocket instance.packetData - network packet buffer.IOException - in case of transport error.Copyright © 2021 jitsi.org. All rights reserved.