crossroads

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

stagetostring.c (657B)


      1 /*************************************************************************
      2  * This file is part of Crosroads 1.23, a load balancer and fail over
      3  * utility for TCP. Copyright (c) Karel Kubat, distributed under GPL.
      4  * Visit http://crossroads.e-tunity.com for information.
      5  *************************************************************************/
      6 #include "crossroads.h"
      7 
      8 char *stage_to_string (Programstage stage) {
      9     switch (stage) {
     10     case stage_main:
     11 	return ("main");
     12     case stage_waiting:
     13 	return ("waiting");
     14     case stage_serving:
     15 	return ("serving");
     16     case stage_retrying:
     17 	return ("retrying");
     18     default:
     19 	return ("unknown");
     20     }
     21 }