コード例 #1
0
ファイル: CoAPEndPoint.cs プロジェクト: rlusian1/CoAP.NET
 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;
 }
コード例 #2
0
ファイル: CoAPEndPoint.cs プロジェクト: rlusian1/CoAP.NET
 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;
 }