Beispiel #1
0
        public unsafe void SendMessage(byte **message, int *sizes, int count, out TrinityResponse response)
        {
            byte   msg_type = PointerHelper.GetByte(message, sizes, TrinityProtocol.MsgTypeOffset);
            ushort msg_id   = PointerHelper.GetUshort(message, sizes, TrinityProtocol.MsgIdOffset);
            int    ms       = ProtocolSemanticRegistry.s_protocolSemantics[msg_type, msg_id];

            response = m_smrmfuncs[ms](message, sizes, count);
        }
Beispiel #2
0
        protected internal unsafe void SendMessage(IMessagePassingEndpoint endpoint, byte **buffers, int *sizes, int count, out TrinityResponse response)
        {
            byte b_msg_type = PointerHelper.GetByte(buffers, sizes, TrinityProtocol.MsgTypeOffset);

            PointerHelper.Add(buffers, sizes, TrinityProtocol.MsgIdOffset, m_MessageIdOffsets[b_msg_type]);

            endpoint.SendMessage(buffers, sizes, count, out response);
        }