示例#1
0
            public HelloClient()
                : base("HelloClient")
            {
                DisconnectOnComplete = true;

                BufferTransform = new BufferTransformStack()
                    .Add(new BlockCipher());
            }
        public Client()
            : base("Client")
        {
            SessionRecoveryEnabled = true;

            BufferTransform = new BufferTransformStack()
                .Add(new BlockCipher());
        }
        public Server()
            : base("Server")
        {
            clientSessions = new Dictionary<int, Session>();

            SessionRecoveryEnabled = true;

            BufferTransform = new BufferTransformStack()
                .Add(new BlockCipher());
        }
示例#4
0
文件: Client.cs 项目: nice1378/x2clr
        public CapitalizerClient()
            : base("CapitalizerClient")
        {
            AutoReconnect = true;
            RetryInterval = 1000;

            BufferTransform = new BufferTransformStack()
                .Add(new x2.Transforms.Cipher())
                .Add(new x2.Transforms.Inverse());
        }
示例#5
0
 public CapitalizerServer()
     : base("CapitalizerServer")
 {
     IncomingKeepaliveEnabled = true;
     OutgoingKeepaliveEnabled = true;
     MaxKeepaliveFailureCount = 1;
     ///*
     BufferTransform = new BufferTransformStack()
         .Add(new BlockCipher())
         .Add(new Inverse());
     //*/
 }
示例#6
0
 public HelloClient()
     : base("HelloClient")
 {
     IncomingKeepaliveEnabled = true;
     OutgoingKeepaliveEnabled = true;
     MaxKeepaliveFailureCount = 1;
     SessionRecoveryEnabled = true;
     ///*
     BufferTransform = new BufferTransformStack()
         .Add(new BlockCipher())
         .Add(new Inverse());
     //*/
 }
示例#7
0
 public HelloServer()
     : base("HelloServer")
 {
     BufferTransform = new BufferTransformStack()
         .Add(new BlockCipher());
 }