void qio_channel_socket_connect_async(QIOChannelSocket *ioc,

                                      SocketAddress *addr,

                                      QIOTaskFunc callback,

                                      gpointer opaque,

                                      GDestroyNotify destroy)

{

    QIOTask *task = qio_task_new(

        OBJECT(ioc), callback, opaque, destroy);

    SocketAddress *addrCopy;



    addrCopy = QAPI_CLONE(SocketAddress, addr);



    /* socket_connect() does a non-blocking connect(), but it

     * still blocks in DNS lookups, so we must use a thread */

    trace_qio_channel_socket_connect_async(ioc, addr);

    qio_task_run_in_thread(task,

                           qio_channel_socket_connect_worker,

                           addrCopy,

                           (GDestroyNotify)qapi_free_SocketAddress);

}

void qio_channel_socket_connect_async(QIOChannelSocket *ioc,

                                      SocketAddress *addr,

                                      QIOTaskFunc callback,

                                      gpointer opaque,

                                      GDestroyNotify destroy)

{

    QIOTask *task = qio_task_new(

        OBJECT(ioc), callback, opaque, destroy);

    SocketAddress *addrCopy;



    addrCopy = QAPI_CLONE(SocketAddress, addr);



    



    trace_qio_channel_socket_connect_async(ioc, addr);

    qio_task_run_in_thread(task,

                           qio_channel_socket_connect_worker,

                           addrCopy,

                           (GDestroyNotify)qapi_free_SocketAddress);

}

void FUNC_0(QIOChannelSocket *VAR_0,

                                      SocketAddress *VAR_1,

                                      QIOTaskFunc VAR_2,

                                      gpointer VAR_3,

                                      GDestroyNotify VAR_4)

{

    QIOTask *task = qio_task_new(

        OBJECT(VAR_0), VAR_2, VAR_3, VAR_4);

    SocketAddress *addrCopy;



    addrCopy = QAPI_CLONE(SocketAddress, VAR_1);



    



    trace_qio_channel_socket_connect_async(VAR_0, VAR_1);

    qio_task_run_in_thread(task,

                           qio_channel_socket_connect_worker,

                           addrCopy,

                           (GDestroyNotify)qapi_free_SocketAddress);

}

void FUNC_0(QIOChannelSocket *VAR_0,
SocketAddress *VAR_1,
QIOTaskFunc VAR_2,
gpointer VAR_3,
GDestroyNotify VAR_4)
{ QIOTask *task = qio_task_new(
OBJECT(VAR_0), VAR_2, VAR_3, VAR_4); SocketAddress *addrCopy; addrCopy = QAPI_CLONE(SocketAddress, VAR_1); trace_qio_channel_socket_connect_async(VAR_0, VAR_1); qio_task_run_in_thread(task,
qio_channel_socket_connect_worker,
addrCopy,
(GDestroyNotify)qapi_free_SocketAddress); }