/// <summary> /// 네트워크로부터 받는 메시지 처리 /// 프로토콜을 분석한 후 IClientEventListener 로 전달한다. /// 처리흐름 : [ClientIoHandler] -> IClientEventListener -> ClientEventAbstract /// </summary> /// <param name="buffer"></param> public void MessageReceived(IoBuffer buffer) { Protocol protocol = Protocol.GetCode(buffer.getShort()); Log.game.Debug("handler.MessageReceived.protocol : " + protocol.Value); //EvnetListener로 넘긴다 listener.EventReceive(protocol, buffer); }
/// <summary> /// 네트워크로부터 받는 메시지 처리 /// 프로토콜을 분석한 후 IClientEventListener 로 전달한다. /// 처리흐름 : [ClientIoHandler] -> IClientEventListener -> ClientEventAbstract /// </summary> /// <param name="buffer"></param> public void MessageReceived(IoBuffer buffer) { Protocol protocol = Protocol.GetCode(buffer.getShort()); Log.game.Debug("handler.MessageReceived.protocol : " + protocol.Value); //EvnetListener로 넘긴다 listener.EventReceive(protocol, buffer); }
public static RCode GetCode(IoBuffer buffer) { return GetCode(buffer.getShort()); }