示例#1
0
文件: Session.cs 项目: dorisoy/Zerio
        public void Open(IntPtr socket)
        {
            Close();

            _socket       = socket;
            _requestQueue = RioRequestQueue.Create(Id, socket,
                                                   _completionQueues.SendingQueue, (uint)_configuration.RequestQueueMaxOutstandingSends,
                                                   _completionQueues.ReceivingQueue, (uint)_configuration.RequestQueueMaxOutstandingReceives);
        }
示例#2
0
        public void Open(IntPtr socket)
        {
            Close();

            _socket = socket;

            var maxOutstandingReceives = (uint)_configuration.MaxOutstandingReceives;
            var maxOutstandingSends    = (uint)_configuration.MaxOutstandingSends;

            _requestQueue = RioRequestQueue.Create(Id, socket, _sendingCompletionQueue, maxOutstandingSends, _receivingCompletionQueue, maxOutstandingReceives);
        }