Exemplo n.º 1
0
        public juggle.Ichannel onConnect(juggle.Ichannel ch)
        {
            service.channel _ch = ch as service.channel;
            _ch.compress_and_encrypt     = (byte[] input) => { return(common.compress_and_encrypt.CompressAndEncrypt(input, xor_key)); };
            _ch.unencrypt_and_uncompress = (byte[] input) => { return(common.compress_and_encrypt.UnEncryptAndUnCompress(input, xor_key)); };

            return(_ch);
        }
Exemplo n.º 2
0
        public void onChannelConnect(juggle.Ichannel ch)
        {
            log.log.trace(new System.Diagnostics.StackFrame(true), service.timerservice.Tick, "onChannelConnect");

            service.channel _ch = ch as service.channel;
            _ch.compress_and_encrypt     = (byte[] input) => { return(common.compress_and_encrypt.CompressAndEncrypt(input, xor_key)); };
            _ch.unencrypt_and_uncompress = (byte[] input) => { return(common.compress_and_encrypt.UnEncryptAndUnCompress(input, xor_key)); };

            clients.add_wait_channel(ch);
        }
Exemplo n.º 3
0
        public test_client()
        {
            _caller_set = new Hashtable();

            _service_list = new List <service.service>();

            _process = new juggle.process();

            service.connectnetworkservice _service = new service.connectnetworkservice(_process);
            service.channel ch      = _service.connect("127.0.0.1", 1234);
            caller.test     _caller = new caller.test(ch);
            _caller.test_func("test", 1);
            Console.WriteLine("test {0:D}", 1);
            _service_list.Add(_service);
        }