package net.freertr.prt;

import net.freertr.ip.ipFwdIface;
import net.freertr.pipe.pipeLine;
import net.freertr.tab.tabConnectLower;

/**
 * one server descriptor
 *
 * @author matecsaba
 */
public class prtGenServ implements tabConnectLower {

    /**
     * create instance
     */
    public prtGenServ() {
    }

    /**
     * stream mode
     */
    public boolean stream;

    /**
     * packet handler
     */
    public prtServP serverP;

    /**
     * stream handler
     */
    public prtServS serverS;

    /**
     * interface
     */
    public ipFwdIface iface;

    /**
     * pipeline
     */
    public pipeLine sample;

    /**
     * port number
     */
    public int locP;

    /**
     * connection name
     */
    public String name;

    /**
     * key id
     */
    public int keyId;

    /**
     * password to use
     */
    public String passwd;

    /**
     * ttl to use
     */
    public int ttl;

    /**
     * tos to use
     */
    public int tos;

    public String toString() {
        return name + " " + iface + " " + locP;
    }

    /**
     * dump
     *
     * @return string
     */
    public String dumper() {
        return "n/a";
    }

}
