Example #1
0
 /// <summary>
 /// Instantiates a new TCP endpoint with the specific channel and configuration
 /// </summary>
 /// <param name="tlsKey">Authentication information</param>
 /// <param name="channel">Channel interface to the transport</param>
 /// <param name="config">Configuration information for the transport</param>
 private TLSClientEndPoint(TLSClientChannel channel, ICoapConfig config) : base(channel, config)
 {
     Stack.Remove("Reliability");
     MessageEncoder           = TcpCoapMesageEncoder;
     MessageDecoder           = TcpCoapMessageDecoder;
     EndpointSchema           = new[] { "coaps", "coaps+tcp" };
     channel.TlsEventHandler += OnTlsEvent;
 }
Example #2
0
 /// <summary>
 /// Instantiates a new TCP endpoint with the specific channel and configuration
 /// </summary>
 /// <param name="tlsKey">Authentication information</param>
 /// <param name="channel">Channel interface to the transport</param>
 /// <param name="config">Configuration information for the transport</param>
 private TLSClientEndPoint(OneKey tlsKey, TLSClientChannel channel, ICoapConfig config) : base(channel, config)
 {
     Stack.Remove("Reliability");
     MessageEncoder = TcpCoapMesageEncoder;
     MessageDecoder = TcpCoapMessageDecoder;
     EndpointSchema = "coaps";
     _userKey       = tlsKey;
 }