コード例 #1
0
        void Init(IServerChannelSinkProvider serverSinkProvider)
        {
            if (serverSinkProvider == null)
            {
                serverSinkProvider = new UnixBinaryServerFormatterSinkProvider();
            }

            // Gets channel data from the chain of channel providers

            channel_data = new ChannelDataStore(null);
            IServerChannelSinkProvider provider = serverSinkProvider;

            while (provider != null)
            {
                provider.GetChannelData(channel_data);
                provider = provider.Next;
            }

            // Creates the sink chain that will process all incoming messages

            IServerChannelSink next_sink = ChannelServices.CreateServerChannelSinkChain(serverSinkProvider, this);

            sink = new UnixServerTransportSink(next_sink);

            StartListening(null);
        }
コード例 #2
0
 private void Init(IServerChannelSinkProvider serverSinkProvider)
 {
     if (serverSinkProvider == null)
     {
         serverSinkProvider = new UnixBinaryServerFormatterSinkProvider();
     }
     this.channel_data = new ChannelDataStore(null);
     for (IServerChannelSinkProvider i = serverSinkProvider; i != null; i = i.Next)
     {
         i.GetChannelData(this.channel_data);
     }
     this.sink = new UnixServerTransportSink(ChannelServices.CreateServerChannelSinkChain(serverSinkProvider, this));
     this.StartListening(null);
 }
コード例 #3
0
        void Init (IServerChannelSinkProvider serverSinkProvider) 
        {
            if (serverSinkProvider == null) 
            {
                serverSinkProvider = new UnixBinaryServerFormatterSinkProvider ();
            }
            
            // Gets channel data from the chain of channel providers

            channel_data = new ChannelDataStore (null);
            IServerChannelSinkProvider provider = serverSinkProvider;
            while (provider != null)
            {
                provider.GetChannelData(channel_data);
                provider = provider.Next;
            }

            // Creates the sink chain that will process all incoming messages

            IServerChannelSink next_sink = ChannelServices.CreateServerChannelSinkChain (serverSinkProvider, this);
            sink = new UnixServerTransportSink (next_sink);
            
            StartListening (null);
        }