Esempio n. 1
0
        public void send(EzyRequest request)
        {
            Object  cmd  = request.getCommand();
            EzyData data = request.serialize();

            send((EzyCommand)cmd, (EzyArray)data);
        }
        public void udpSend(EzyRequest request)
        {
            String  cmd  = (String)request.getCommand();
            EzyData data = request.serialize();

            udpSend(cmd, data);
        }
Esempio n. 3
0
        public EzyArray serialize(EzyRequest request)
        {
            var array = request.serialize();

            return(array);
        }
Esempio n. 4
0
 public virtual void udpSend(EzyRequest request)
 {
     throw new InvalidOperationException("only support TCP, use EzyUTClient instead");
 }
 public EzyPingSchedule(EzyClient client)
 {
     this.client      = client;
     this.pingRequest = new EzyPingRequest();
     this.pingManager = client.getPingManager();
 }
        protected void sendHandshakeRequest()
        {
            EzyRequest request = newHandshakeRequest();

            client.send(request);
        }
Esempio n. 7
0
        protected void handleLogin(EzyArray data)
        {
            EzyRequest loginRequest = getLoginRequest();

            client.send(loginRequest);
        }
        public void send(EzyRequest request)
        {
            var message = requestSerializer.serialize(request);

            socketTcpClient.sendMessage(message);
        }