crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs | LICENSE

typestr.cc (236B)


      1 #include "servertype"
      2 
      3 #include "error/error"
      4 
      5 string Servertype::typestr() const {
      6     if (t == t_tcp)
      7 	return ("tcp");
      8     else if (t == t_http)
      9 	return ("http");
     10     else
     11 	throw Error("Server type unknown in Servertype::typestr");
     12 }