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); }
public EzyArray serialize(EzyRequest request) { var array = request.serialize(); return(array); }
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); }
protected void handleLogin(EzyArray data) { EzyRequest loginRequest = getLoginRequest(); client.send(loginRequest); }
public void send(EzyRequest request) { var message = requestSerializer.serialize(request); socketTcpClient.sendMessage(message); }