crossroads

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

type1.cc (250B)


      1 #include "servertype"
      2 
      3 #include "error/error"
      4 
      5 void Servertype::type (string id) {
      6     if (id == "tcp")
      7 	t = t_tcp;
      8     else if (id == "http")
      9 	t = t_http;
     10     else
     11 	throw Error("Bad server type '" + id +
     12 		    "', supported are 'tcp' or 'http'");
     13 }