/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package lmo.remote.pc.server.packet;

import java.io.InputStream;
import lmo.remote.pc.lib.Utils;
import lmo.remote.pc.server.RemotePCClient;

/**
 *
 * @author developer
 */
public abstract class Packet {

    protected RemotePCClient client = null;
    protected String src = null;

    public Packet(RemotePCClient client) throws Exception {
        InputStream in = client.getSocket().getInputStream();
        this.src = Utils.readLenValue(in);
    }

    abstract public void handle() throws Exception;

}
