示例#1
0
        public bool TransmitMessage(IRemoteMessage message)
        {
#if WINDOWS_UWP
            if (m_socket != null)
            {
                m_messageOutstream.WriteUInt16((ushort)message.MessageHeader);
                var sizeofmessage = message.Message.Length;
                m_messageOutstream.WriteInt32(sizeofmessage);
                m_messageOutstream.WriteBytes(message.Message);
            }

            return(m_socket != null);
#else
            return(false);
#endif
        }
示例#2
0
 public bool SendMessage(IRemoteMessage message)
 {
     return(m_orchestrator.TransmitMessage(message));
 }
示例#3
0
 public bool ReadMessage(IRemoteMessage message)
 {
     // Do something with this
     return(true);
 }