public UdpChannel(int port)
        {
            var props = new Hashtable();

            props["port"] = port;
            ServerChannel = new UdpServerChannel(props, null);
        }
 public UdpChannel(IDictionary properties, IClientChannelSinkProvider clientChain, IServerChannelSinkProvider serverChain)
 {
     if (serverChain != null || (properties != null && properties.Contains("port")))
     {
         ServerChannel = new UdpServerChannel(properties, serverChain);
     }
     else
     {
         ClientChannel = new UdpClientChannel(properties, clientChain);
     }
 }
Exemple #3
0
 public UdpChannel(IDictionary properties, IClientChannelSinkProvider clientChain, IServerChannelSinkProvider serverChain)
 {
     if (serverChain != null || (properties != null && properties.Contains("port")))
     {
         ServerChannel = new UdpServerChannel(properties, serverChain);
     }
     else
     {
         ClientChannel = new UdpClientChannel(properties, clientChain);
     }
 }
Exemple #4
0
 public UdpChannel(int port)
 {
     var props = new Hashtable();
     props["port"] = port;
     ServerChannel = new UdpServerChannel(props, null);
 }