Exemple #1
0
        //----------------------------< Test stub >-------------------------
#if (Test_Comm)
        public static void Main(string[] args)
        {
            Comm        comm    = new Comm("http://localhost", 8081);
            CommMessage csndMsg = new CommMessage(CommMessage.MessageType.connect);

            csndMsg.command = "show";
            csndMsg.author  = "Harika";
            csndMsg.to      = "http://localhost:8081/IMessagePassingComm";
            csndMsg.from    = "http://localhost:8081/IMessagePassingComm";
            comm.postMessage(csndMsg);
            CommMessage crcvMsg = comm.getMessage();

            crcvMsg.show();
            crcvMsg = comm.getMessage();
        }