Exemple #1
0
            AutoCSer.Net.TcpServer.AwaiterBox <AutoCSer.DiskBlock.ClientBuffer> readAwaiter(AutoCSer.DiskBlock.ClientBuffer buffer, ulong index)
            {
                AutoCSer.Net.TcpServer.AwaiterBox <AutoCSer.DiskBlock.ClientBuffer> _awaiter_ = new AutoCSer.Net.TcpServer.AwaiterBox <AutoCSer.DiskBlock.ClientBuffer>();
                AutoCSer.Net.TcpInternalServer.ClientSocketSender _socket_ = _TcpClient_.Sender;
                if (_socket_ != null)
                {
                    TcpInternalServer._p5 _inputParameter_ = new TcpInternalServer._p5
                    {
                        p0 = buffer,

                        p1 = index,
                    };
                    AutoCSer.Net.TcpServer.ReturnType _returnType_;
                    AutoCSer.Net.TcpServer.AwaiterReturnValueBox <AutoCSer.DiskBlock.ClientBuffer> _outputParameter_ = default(AutoCSer.Net.TcpServer.AwaiterReturnValueBox <AutoCSer.DiskBlock.ClientBuffer>);
                    _returnType_ = _socket_.GetAwaiter <TcpInternalServer._p5, AutoCSer.Net.TcpServer.AwaiterReturnValueBox <AutoCSer.DiskBlock.ClientBuffer> >(_a2, _awaiter_, ref _inputParameter_, ref _outputParameter_);
                    if (_returnType_ != AutoCSer.Net.TcpServer.ReturnType.Success)
                    {
                        _awaiter_.Call(_returnType_);
                    }
                }
                else
                {
                    _awaiter_.Call(AutoCSer.Net.TcpServer.ReturnType.ClientException);
                }
                return(_awaiter_);
            }
 AutoCSer.Net.TcpServer.AwaiterBox <bool> appendLogAwaiter(AutoCSer.Net.TcpRegister.ServerLog server)
 {
     AutoCSer.Net.TcpServer.AwaiterBox <bool>          _awaiter_ = new AutoCSer.Net.TcpServer.AwaiterBox <bool>();
     AutoCSer.Net.TcpInternalServer.ClientSocketSender _socket_  = _TcpClient_.Sender;
     if (_socket_ != null)
     {
         TcpInternalServer._p4 _inputParameter_ = new TcpInternalServer._p4
         {
             p0 = server,
         };
         AutoCSer.Net.TcpServer.ReturnType _returnType_;
         AutoCSer.Net.TcpServer.AwaiterReturnValueBox <bool> _outputParameter_ = default(AutoCSer.Net.TcpServer.AwaiterReturnValueBox <bool>);
         _returnType_ = _socket_.GetAwaiter <TcpInternalServer._p4, AutoCSer.Net.TcpServer.AwaiterReturnValueBox <bool> >(_a3, _awaiter_, ref _inputParameter_, ref _outputParameter_);
         if (_returnType_ != AutoCSer.Net.TcpServer.ReturnType.Success)
         {
             _awaiter_.Call(_returnType_);
         }
     }
     else
     {
         _awaiter_.Call(AutoCSer.Net.TcpServer.ReturnType.ClientException);
     }
     return(_awaiter_);
 }
Exemple #3
0
 AutoCSer.Net.TcpServer.AwaiterBox <ulong> appendAwaiter(AutoCSer.DiskBlock.AppendBuffer buffer)
 {
     AutoCSer.Net.TcpServer.AwaiterBox <ulong>         _awaiter_ = new AutoCSer.Net.TcpServer.AwaiterBox <ulong>();
     AutoCSer.Net.TcpInternalServer.ClientSocketSender _socket_  = _TcpClient_.Sender;
     if (_socket_ != null)
     {
         TcpInternalServer._p1 _inputParameter_ = new TcpInternalServer._p1
         {
             p0 = buffer,
         };
         AutoCSer.Net.TcpServer.ReturnType _returnType_;
         AutoCSer.Net.TcpServer.AwaiterReturnValueBox <ulong> _outputParameter_ = default(AutoCSer.Net.TcpServer.AwaiterReturnValueBox <ulong>);
         _returnType_ = _socket_.GetAwaiter <TcpInternalServer._p1, AutoCSer.Net.TcpServer.AwaiterReturnValueBox <ulong> >(_a0, _awaiter_, ref _inputParameter_, ref _outputParameter_);
         if (_returnType_ != AutoCSer.Net.TcpServer.ReturnType.Success)
         {
             _awaiter_.Call(_returnType_);
         }
     }
     else
     {
         _awaiter_.Call(AutoCSer.Net.TcpServer.ReturnType.ClientException);
     }
     return(_awaiter_);
 }