/// <summary> /// Instantiates a new DTLS endpoint with the specific channel and configuration /// </summary> /// <param name="channel">Channel interface to the transport</param> /// <param name="config">Configuration information for the transport</param> private DTLSClientEndPoint(DTLSClientChannel channel, ICoapConfig config) : base(channel, config) { // Stack.Remove("Reliability"); MessageEncoder = UdpCoapMesageEncoder; MessageDecoder = UdpCoapMessageDecoder; EndpointSchema = "coaps"; }
/// <summary> /// Instantiates a new DTLS endpoint with the specific channel and configuration /// </summary> /// <param name="channel">Channel interface to the transport</param> /// <param name="config">Configuration information for the transport</param> private DTLSClientEndPoint(DTLSClientChannel channel, ICoapConfig config) : base(channel, config) { // Stack.Remove("Reliability"); MessageEncoder = UdpCoapMesageEncoder; MessageDecoder = UdpCoapMessageDecoder; EndpointSchema = new [] { "coaps", "coaps+udp" }; channel.TlsEventHandler += OnTlsEvent; }