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); }
internal Message SendWithReplyAndBlock(Message msg, bool keepFDs) { PendingCall pending = SendWithReply(msg, keepFDs); return(pending.Reply); }
internal Message SendWithReplyAndBlock(Message msg) { PendingCall pending = SendWithReply(msg); return(pending.Reply); }