Class DtlsServerUdpTransport
Class for performing the server side of the DTLS handshake for DTLS-SRTP. This class uses a .NET UdpClient to communicate with the DTLS-SRTP client.
This class should be used to perform the DTLS-SRTP handshake only. At the end of the DTLS-SRTP handshake both the client and the server will have exchanged the SRTP keying material. Call the Close() method when the handshake is completed. The Close() method closes the UdpClient object so it is necessary to create a new UdpClient object to communicate with the client for transporting SRTP media packets.
After calling the constructor, call the DoHandshake() method of the DtlsSrtpTransport object to start the DTLS-SRTP handshake process.
Inherited Members
Namespace: SipLib.Dtls
Assembly: SipLib.dll
Syntax
public class DtlsServerUdpTransport
Constructors
| Edit this page View SourceDtlsServerUdpTransport(UdpClient, IPEndPoint, DtlsSrtpTransport)
Constructor
Declaration
public DtlsServerUdpTransport(UdpClient udpClient, IPEndPoint remIpEndPoint, DtlsSrtpTransport dtlsSrtpServerTransport)
Parameters
Type | Name | Description |
---|---|---|
UdpClient | udpClient | UdpClient object to use for sending data to and receiving data from the DTLS-SRTP client |
IPEndPoint | remIpEndPoint | Remote endpoint of the DTLS-SRTP client |
DtlsSrtpTransport | dtlsSrtpServerTransport | Transport to use for managing the DTLS-SRTP server handshake |
Methods
| Edit this page View SourceClose()
Closes the UdpClient which forces the receive thread to terminate.
Declaration
public void Close()