public override void OnDataArrival(byte[] buffer) { Message message = SSyncCore.BuildMessage(buffer); if (!SSyncCore.HandleMessage(message, this)) { if (OnMessageHandleFailed != null) { OnMessageHandleFailed(message); } } }
void SSyncClient_OnDataArrival(byte[] datas) { Message message = SSyncCore.BuildMessage(datas); if (SSyncCore.HandleMessage(message, this)) { if (OnMessageReceived != null) { OnMessageReceived(message); } } }