Class DtlsClientUdpTransport
Class for performing the client side of the DTLS handshake for DTLS-SRTP. This class uses a .NET UdpClient to communicate with the DTLS-SRTP server.
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 server 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 DtlsClientUdpTransport
Constructors
| Edit this page View SourceDtlsClientUdpTransport(UdpClient, IPEndPoint, DtlsSrtpTransport)
Constructor. Starts a thread that listens for DTLS-SRTP handshake data packets from the server.
Declaration
public DtlsClientUdpTransport(UdpClient udpClient, IPEndPoint remIpEndPoint, DtlsSrtpTransport dtlsClientTransport)
Parameters
Type | Name | Description |
---|---|---|
UdpClient | udpClient | UdpClient object to use for sending data to and receiving data from the DTLS-SRTP server. |
IPEndPoint | remIpEndPoint | Remote endpoint of the DTLS-SRTP server |
DtlsSrtpTransport | dtlsClientTransport | Transport to use for managing the DTLS-SRTP client handshake |
Methods
| Edit this page View SourceClose()
Closes the UdpClient which forces the receive thread to terminate.
Declaration
public void Close()