util/yaz-illclient.c
COMSTACK connect_to( char *hostaddr ){
    COMSTACK stack;
    void *server_address_ip;
    int status;

    yaz_log(YLOG_DEBUG,"Connecting to '%s'", hostaddr);
    stack = cs_create_host(hostaddr, 1, &server_address_ip );
    if (!stack) {
        yaz_log(YLOG_FATAL,"Error in creating the comstack '%s' ",
                 hostaddr );
        exit(2);
    }

    yaz_log(YLOG_DEBUG,"Created stack ok ");

    status = cs_connect(stack, server_address_ip);
    if (status != 0) {
        yaz_log(YLOG_FATAL|YLOG_ERRNO,"Can not connect '%s' ",
                 hostaddr );
        exit(3);
    }
    yaz_log(YLOG_DEBUG,"Connected OK to '%s'", hostaddr);
    return stack;
}
/* * * * * * * * * * * * * * * */
/** \brief  Connect to the target */
\brief  Connect to the target
\ brief Connect to the target
COMSTACK connect_to( char *hostaddr ){
    COMSTACK stack;
    void *server_address_ip;
    int status;
    yaz_log(YLOG_DEBUG,"Connecting to '%s'", hostaddr);
    stack = cs_create_host(hostaddr, 1, &server_address_ip );
    if (!stack) {
        yaz_log(YLOG_FATAL,"Error in creating the comstack '%s' ",
                 hostaddr );
        exit(2);
    }
    yaz_log(YLOG_DEBUG,"Created stack ok ");
    status = cs_connect(stack, server_address_ip);
    if (status != 0) {
        yaz_log(YLOG_FATAL|YLOG_ERRNO,"Can not connect '%s' ",
                 hostaddr );
        exit(3);
    }
    yaz_log(YLOG_DEBUG,"Connected OK to '%s'", hostaddr);
    return stack;
}
COMSTACK connect_to ( char * hostaddr ) { COMSTACK stack ; void * server_address_ip ; int status ; yaz_log ( YLOG_DEBUG , " " , hostaddr ) ; stack = cs_create_host ( hostaddr , 1 , & server_address_ip ) ; if ( ! stack ) { yaz_log ( YLOG_FATAL , " " , hostaddr ) ; exit ( 2 ) ; } yaz_log ( YLOG_DEBUG , " " ) ; status = cs_connect ( stack , server_address_ip ) ; if ( status != 0 ) { yaz_log ( YLOG_FATAL | YLOG_ERRNO , " " , hostaddr ) ; exit ( 3 ) ; } yaz_log ( YLOG_DEBUG , " " , hostaddr ) ; return stack ; }
* * * * * * * * * * * * 
\brief  Connect to the target
* * * * * * * * * * * * \ brief Connect to the target