src/session.c
static int
smp_fetch_conn_cnt(struct stktable *table, struct sample *smp, struct stksess *ts)
{
	smp->flags = SMP_F_VOL_TEST;
	smp->type = SMP_T_UINT;
	smp->data.uint = 0;
	if (ts != NULL) {
		void *ptr = stktable_data_ptr(table, ts, STKTABLE_DT_CONN_CNT);
		if (!ptr)
			return 0; /* parameter not stored */
		smp->data.uint = stktable_data_cast(ptr, conn_cnt);
	}
	return 1;
}
/* set temp integer to the cumulated number of connections in the stksess entry <ts> */
set temp integer to the cumulated number of connections in the stksess entry 
set temp integer to the cumulated number of connections in the stksess entry
static int
smp_fetch_conn_cnt(struct stktable *table, struct sample *smp, struct stksess *ts)
{
	smp->flags = SMP_F_VOL_TEST;
	smp->type = SMP_T_UINT;
	smp->data.uint = 0;
	if (ts != NULL) {
		void *ptr = stktable_data_ptr(table, ts, STKTABLE_DT_CONN_CNT);
		if (!ptr)
			return 0; 
		smp->data.uint = stktable_data_cast(ptr, conn_cnt);
	}
	return 1;
}
static int smp_fetch_conn_cnt ( struct stktable * table , struct sample * smp , struct stksess * ts ) { smp -> flags = SMP_F_VOL_TEST ; smp -> type = SMP_T_UINT ; smp -> data . uint = 0 ; if ( ts != NULL ) { void * ptr = stktable_data_ptr ( table , ts , STKTABLE_DT_CONN_CNT ) ; if ( ! ptr ) return 0 ; smp -> data . uint = stktable_data_cast ( ptr , conn_cnt ) ; } return 1 ; }
set temp integer to the cumulated number of connections in the stksess entry <ts>
set temp integer to the cumulated number of connections in the stksess entry <ts >
/* parameter not stored */