#ifndef _SERVERTYPE_
#define _SERVERTYPE_

#include <string>
using namespace std;

class Servertype {
public:
    enum Type {
	t_tcp,
	t_http,
	t_udp,
    };

    Servertype(): t(t_tcp) 		{ }
    Servertype(string id) 		{ type(id); }

    void type(string id);
    string typestr() const;
    Type type() const 			{ return t; }

private:
    Type t;
};

#endif
