/// <summary> /// Instantiates a new DTLS endpoint with the specific channel and configuration /// </summary> /// <param name="channel">The DTLS Channel object to use for low level transmission</param> /// <param name="config">Configuration interface</param> public DTLSEndPoint(DTLSChannel channel, ICoapConfig config) : base(channel, config) { Stack.Remove(Stack.Get("Reliability")); MessageEncoder = UdpCoapMesageEncoder; MessageDecoder = UdpCoapMessageDecoder; EndpointSchema = "coaps"; }
/// <summary> /// Instantiates a new DTLS endpoint with the specific channel and configuration /// </summary> /// <param name="channel">The DTLS Channel object to use for low level transmission</param> /// <param name="config">Configuration interface</param> public DTLSEndPoint(DTLSChannel channel, ICoapConfig config) : base(channel, config) { // Stack.Remove(Stack.Get("Reliability")); MessageEncoder = UdpCoapMesageEncoder; MessageDecoder = UdpCoapMessageDecoder; EndpointSchema = new [] { "coaps", "coaps+udp" }; channel.TlsEventHandler += OnTlsEvent; }