Ejemplo n.º 1
0
 static IChannel NewUDPChannel(System.Net.EndPoint localEP, ICoapConfig config)
 {
     UDPChannel channel = new UDPChannel(localEP);
     channel.ReceiveBufferSize = config.ChannelReceiveBufferSize;
     channel.SendBufferSize = config.ChannelSendBufferSize;
     channel.ReceivePacketSize = config.ChannelReceivePacketSize;
     return channel;
 }
Ejemplo n.º 2
0
 static IChannel NewUDPChannel(Int32 port, ICoapConfig config)
 {
     UDPChannel channel = new UDPChannel(port);
     channel.ReceiveBufferSize = config.ChannelReceiveBufferSize;
     channel.SendBufferSize = config.ChannelSendBufferSize;
     channel.ReceivePacketSize = config.ChannelReceivePacketSize;
     return channel;
 }