Example #1
0
		public static void Main(string[] args) {
			// register the channel
			int port = 8087;
                        if (args.Length > 0) {
                            port = Int32.Parse(args[0]);
                        }
			IiopChannel chan = new IiopChannel(port);
			ChannelServices.RegisterChannel(chan, false);
		
			ChatroomImpl chatroom = new ChatroomImpl();
			string objectURI = "chatroom";
			RemotingServices.Marshal(chatroom, objectURI);
			
			Console.WriteLine("server running");
			Console.ReadLine();
		}
Example #2
0
        public static void Main(string[] args)
        {
            // register the channel
            int port = 8087;

            if (args.Length > 0)
            {
                port = Int32.Parse(args[0]);
            }
            IiopChannel chan = new IiopChannel(port);

            ChannelServices.RegisterChannel(chan, false);

            ChatroomImpl chatroom  = new ChatroomImpl();
            string       objectURI = "chatroom";

            RemotingServices.Marshal(chatroom, objectURI);

            Console.WriteLine("server running");
            Console.ReadLine();
        }