static void socket_start_outgoing_migration(MigrationState *s,

                                            SocketAddress *saddr,

                                            Error **errp)

{

    QIOChannelSocket *sioc = qio_channel_socket_new();

    struct SocketConnectData *data = g_new0(struct SocketConnectData, 1);



    data->s = s;

    if (saddr->type == SOCKET_ADDRESS_KIND_INET) {

        data->hostname = g_strdup(saddr->u.inet.data->host);

    }



    qio_channel_set_name(QIO_CHANNEL(sioc), "migration-socket-outgoing");

    qio_channel_socket_connect_async(sioc,

                                     saddr,

                                     socket_outgoing_migration,

                                     data,

                                     socket_connect_data_free);

    qapi_free_SocketAddress(saddr);

}

static void socket_start_outgoing_migration(MigrationState *s,

                                            SocketAddress *saddr,

                                            Error **errp)

{

    QIOChannelSocket *sioc = qio_channel_socket_new();

    struct SocketConnectData *data = g_new0(struct SocketConnectData, 1);



    data->s = s;

    if (saddr->type == SOCKET_ADDRESS_KIND_INET) {

        data->hostname = g_strdup(saddr->u.inet.data->host);

    }



    qio_channel_set_name(QIO_CHANNEL(sioc), "migration-socket-outgoing");

    qio_channel_socket_connect_async(sioc,

                                     saddr,

                                     socket_outgoing_migration,

                                     data,

                                     socket_connect_data_free);

    qapi_free_SocketAddress(saddr);

}

static void FUNC_0(MigrationState *VAR_0,

                                            SocketAddress *VAR_1,

                                            Error **VAR_2)

{

    QIOChannelSocket *sioc = qio_channel_socket_new();

    struct SocketConnectData *VAR_3 = g_new0(struct SocketConnectData, 1);



    VAR_3->VAR_0 = VAR_0;

    if (VAR_1->type == SOCKET_ADDRESS_KIND_INET) {

        VAR_3->hostname = g_strdup(VAR_1->u.inet.VAR_3->host);

    }



    qio_channel_set_name(QIO_CHANNEL(sioc), "migration-socket-outgoing");

    qio_channel_socket_connect_async(sioc,

                                     VAR_1,

                                     socket_outgoing_migration,

                                     VAR_3,

                                     socket_connect_data_free);

    qapi_free_SocketAddress(VAR_1);

}

static void FUNC_0(MigrationState *VAR_0,
SocketAddress *VAR_1,
Error **VAR_2)
{ QIOChannelSocket *sioc = qio_channel_socket_new(); struct SocketConnectData *VAR_3 = g_new0(struct SocketConnectData, 1); VAR_3->VAR_0 = VAR_0; if (VAR_1->type == SOCKET_ADDRESS_KIND_INET) { VAR_3->hostname = g_strdup(VAR_1->u.inet.VAR_3->host); } qio_channel_set_name(QIO_CHANNEL(sioc), "migration-socket-outgoing"); qio_channel_socket_connect_async(sioc,
VAR_1,
socket_outgoing_migration,
VAR_3,
socket_connect_data_free); qapi_free_SocketAddress(VAR_1); }