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(); }
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(); }