Esempio n. 1
0
 //
 // This has more uses than the current ones, we might want to introduce
 // additional SendXxx methods to encode the few options that are currently
 // configured via one of the three NWContentContext static properties
 //
 unsafe void LowLevelSend(IntPtr handle, DispatchData buffer, IntPtr contentContext, bool isComplete, void *callback)
 {
     nw_connection_send(handle: GetCheckedHandle(),
                        dispatchData: buffer.GetHandle(),
                        contentContext: contentContext,
                        isComplete: isComplete,
                        callback: callback);
 }
Esempio n. 2
0
        public void Reply(NWContentContext inboundMessage, NWContentContext outboundMessage, DispatchData content)
        {
            if (inboundMessage == null)
            {
                throw new ArgumentNullException(nameof(inboundMessage));
            }
            if (outboundMessage == null)
            {
                throw new ArgumentNullException(nameof(outboundMessage));
            }

            nw_connection_group_reply(GetCheckedHandle(), inboundMessage.GetCheckedHandle(), outboundMessage.GetCheckedHandle(), content.GetHandle());
        }