int tcp_socket_incoming(const char *address, uint16_t port)

{

    char address_and_port[128];

    Error *local_err = NULL;



    combine_addr(address_and_port, 128, address, port);

    int fd = inet_listen(address_and_port, NULL, 0, SOCK_STREAM, 0, &local_err);



    if (local_err != NULL) {

        qerror_report_err(local_err);

        error_free(local_err);

    }

    return fd;

}

int tcp_socket_incoming(const char *address, uint16_t port)

{

    char address_and_port[128];

    Error *local_err = NULL;



    combine_addr(address_and_port, 128, address, port);

    int fd = inet_listen(address_and_port, NULL, 0, SOCK_STREAM, 0, &local_err);



    if (local_err != NULL) {

        qerror_report_err(local_err);

        error_free(local_err);

    }

    return fd;

}

int FUNC_0(const char *VAR_0, uint16_t VAR_1)

{

    char VAR_2[128];

    Error *local_err = NULL;



    combine_addr(VAR_2, 128, VAR_0, VAR_1);

    int VAR_3 = inet_listen(VAR_2, NULL, 0, SOCK_STREAM, 0, &local_err);



    if (local_err != NULL) {

        qerror_report_err(local_err);

        error_free(local_err);

    }

    return VAR_3;

}

int FUNC_0(const char *VAR_0, uint16_t VAR_1)
{ char VAR_2[128]; Error *local_err = NULL; combine_addr(VAR_2, 128, VAR_0, VAR_1); int VAR_3 = inet_listen(VAR_2, NULL, 0, SOCK_STREAM, 0, &local_err); if (local_err != NULL) { qerror_report_err(local_err); error_free(local_err); } return VAR_3; }