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 }