Exemplo n.º 1
0
        void Init(IServerChannelSinkProvider provider)
        {
            if (provider == null)
            {
                provider = new CORBAServerFormatterSinkProvider();
            }

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

            host = Dns.GetHostByName(Dns.GetHostName()).HostName;

            string [] uris = null;

            if (port != 0)
            {
                uris     = new String [1];
                uris [0] = GetChannelUri();
            }

            channel_data = new ChannelDataStore(uris);;

            sink = new CORBAServerTransportSink(next_sink);

            listener = new TcpListener(port);
            StartListening(null);
        }
Exemplo n.º 2
0
		void Init (IServerChannelSinkProvider provider) {
			if (provider == null) {
				provider = new CORBAServerFormatterSinkProvider ();
			}
			
			IServerChannelSink next_sink = ChannelServices.CreateServerChannelSinkChain (provider, this);

			host = Dns.GetHostByName(Dns.GetHostName()).HostName;
			
			string [] uris = null;
			
			if (port != 0) {
				uris = new String [1];
				uris [0] = GetChannelUri ();
			}
			
			channel_data = new ChannelDataStore (uris);;

			sink = new CORBAServerTransportSink (next_sink);
			
			listener = new TcpListener (port);
			StartListening (null);
		}