Exemplo n.º 1
0
 private void initChatCliServer()
 {
     cco = new CliChat();
     cco.addChatMessageText   += addTextMessage;
     cco.tryToDisplayMsg      += tryToDisplayMsg;
     cco.addMessageToClockVec += addMessageToClockVec;
     RemotingServices.Marshal(cco, "chatClientServerService",
                              typeof(CliChat));
 }
Exemplo n.º 2
0
        private void initChatClient(String url, String name)
        {
            CliChat obj = (CliChat)
                          Activator.GetObject(
                typeof(ICliChat),
                url);

            Tuple <string, CliChat> t = new Tuple <string, CliChat>(name, obj);

            cc.Add(t);
        }
Exemplo n.º 3
0
        private void initClientServer()
        {
            cco = new CliChat();
            cco.addChatMessageText   += addTextMessage;
            cco.tryToDisplayMsg      += tryToDisplayMsg;
            cco.addMessageToClockVec += addMessageToClockVec;

            RemotingServices.Marshal(cco, "chatClientServerService",
                                     typeof(CliChat));

            mo = new ResponseGame();
            mo.changePacmanVisibility += changePacmanVisibility;
            mo.launch_mainloop        += launch_mainloop;
            mo.registerChatClients    += registerChatClients;

            RemotingServices.Marshal(mo, "ClientService",
                                     typeof(IResponseGame));
        }