Beispiel #1
0
        public override void OnReceiveSessionMessage(ServerSessionMessage message)
        {
            switch (message.GetMessageType())
            {
            case ServerMessageType.START_SERVER_SESSION_FAILED:
                ProxyMessageManager.OnStartServerSessionFailedMessageReceived((StartServerSessionFailedMessage)message);
                break;

            case ServerMessageType.STOP_SESSION:
                ProxyMessageManager.OnStopSessionMessageReceived((StopSessionMessage)message);
                break;

            case ServerMessageType.STOP_SERVER_SESSION:
                ProxyMessageManager.OnStopServerSessionMessageReceived((StopServerSessionMessage)message);
                break;

            case ServerMessageType.STOP_SPECIFIED_SERVER_SESSION:
                ProxyMessageManager.OnStopSpecifiedServerSessionMessageReceived((StopSpecifiedServerSessionMessage)message);
                break;

            case ServerMessageType.FORWARD_LOGIC_MESSAGE:
                ProxyMessageManager.OnForwardLogicMessageReceived((ForwardLogicMessage)message);
                break;
            }
        }
Beispiel #2
0
 public override void OnReceiveRequestMessage(ServerRequestMessage message)
 {
     switch (message.GetMessageType())
     {
     case ServerMessageType.BIND_SERVER_SOCKET_REQUEST:
         ProxyMessageManager.OnBindServerSocketRequestMessageReceived((BindServerSocketRequestMessage)message);
         break;
     }
 }