예제 #1
0
        public override void OnDataArrival(byte[] buffer)
        {
            Message message = SSyncCore.BuildMessage(buffer);

            if (!SSyncCore.HandleMessage(message, this))
            {
                if (OnMessageHandleFailed != null)
                {
                    OnMessageHandleFailed(message);
                }
            }
        }
예제 #2
0
        void SSyncClient_OnDataArrival(byte[] datas)
        {
            Message message = SSyncCore.BuildMessage(datas);

            if (SSyncCore.HandleMessage(message, this))
            {
                if (OnMessageReceived != null)
                {
                    OnMessageReceived(message);
                }
            }
        }