示例#1
0
        internal PendingCall SendWithReply(Message msg, bool keepFDs)
        {
            msg.ReplyExpected = true;

            if (msg.Header.Serial == 0)
            {
                msg.Header.Serial = GenerateSerial();
            }

            // Should we throttle the maximum number of concurrent PendingCalls?
            // Should we support timeouts?
            PendingCall pending = new PendingCall(this, keepFDs);

            lock (pendingCalls)
                pendingCalls[msg.Header.Serial] = pending;

            Send(msg);

            return(pending);
        }
示例#2
0
        internal Message SendWithReplyAndBlock(Message msg, bool keepFDs)
        {
            PendingCall pending = SendWithReply(msg, keepFDs);

            return(pending.Reply);
        }
示例#3
0
        internal Message SendWithReplyAndBlock(Message msg)
        {
            PendingCall pending = SendWithReply(msg);

            return(pending.Reply);
        }