odyssey/core/od_router.h

27 lines
378 B
C
Raw Normal View History

2016-11-09 12:19:26 +00:00
#ifndef OD_ROUTER_H_
#define OD_ROUTER_H_
/*
* odissey.
*
* PostgreSQL connection pooler and request router.
*/
typedef enum {
OD_RS_UNDEF,
OD_RS_OK,
OD_RS_EROUTE,
OD_RS_EPOOL,
OD_RS_ESERVER_READ,
OD_RS_ESERVER_WRITE,
OD_RS_ECLIENT_READ,
OD_RS_ECLIENT_WRITE
} od_routerstatus_t;
od_route_t*
od_route(od_pooler_t*, so_bestartup_t*);
2016-11-09 12:19:26 +00:00
void od_router(void*);
#endif