crossroads

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

setting.cc (380B)


      1 #include "backendcheck"
      2 
      3 string BackendCheck::setting() const {
      4     ostringstream o;
      5     
      6     if (check_type == c_external)
      7 	o << "external:" << extprog;
      8     else {
      9 	if (check_type == c_connect)
     10 	    o << "connect:";
     11 	else
     12 	    o << "get:";
     13 	if (srv != "")
     14 	    o << srv;
     15 	o << ':';
     16 	if (prt)
     17 	    o << prt;
     18 	if (check_type == c_get)
     19 	    o << geturi;
     20     }
     21     return o.str();
     22 }