Ejemplo n.º 1
0
        internal override void SendMessage(byte *message, int size)
        {
            TrinityErrorCode err = TrinityErrorCode.E_SUCCESS;

            for (int i = 0; i < retry; i++)
            {
                SynClient sc = GetClient();
                err = sc.SendMessage(message, size);
                PutBackClient(sc);
                if (err == TrinityErrorCode.E_SUCCESS || err == TrinityErrorCode.E_RPC_EXCEPTION)
                {
                    break;
                }
            }
            _error_check(err);
        }
Ejemplo n.º 2
0
        internal override void SendMessage(TrinityMessage msg, out TrinityResponse response)
        {
            response = null;
            TrinityErrorCode err = TrinityErrorCode.E_SUCCESS;

            for (int i = 0; i < retry; i++)
            {
                SynClient sc = GetClient();
                err = sc.SendMessage(msg.Buffer, msg.Size, out response);
                PutBackClient(sc);
                if (err == TrinityErrorCode.E_SUCCESS || err == TrinityErrorCode.E_RPC_EXCEPTION)
                {
                    break;
                }
            }

            _error_check(err);
        }