#define MEMBUFSIZE 256
+/*
+ * if str mathes by pattern returns poineter to begin of value
+ * and NULL in opposite case
+ */
static char*
cmpPattern( char *str, char *pattern ) {
while( *str != '\0' && *str == *pattern ) {
cfg.mu = allocUnits(n);
TC_addConnection( &cfg.pool, TC_fillConnection(NULL, NULL, listenport) );
- TC_ClientInitConnection( cfg.pool.conn[0], NULL, listenport);
+ TC_ClientInitConnection( cfg.pool.conn[0], host, listenport);
cfg.pool.conn[0]->state = CS_READ;
TC_addConnection( &cfg.pool, TC_fillConnection(NULL, NULL, listenport) );