static void vnc_listen_read(void *opaque)

{

    VncDisplay *vs = opaque;

    struct sockaddr_in addr;

    socklen_t addrlen = sizeof(addr);



    /* Catch-up */

    vga_hw_update();



    int csock = accept(vs->lsock, (struct sockaddr *)&addr, &addrlen);

    if (csock != -1) {

        vnc_connect(vs, csock);

    }

}

static void vnc_listen_read(void *opaque)

{

    VncDisplay *vs = opaque;

    struct sockaddr_in addr;

    socklen_t addrlen = sizeof(addr);



    

    vga_hw_update();



    int csock = accept(vs->lsock, (struct sockaddr *)&addr, &addrlen);

    if (csock != -1) {

        vnc_connect(vs, csock);

    }

}

    int csock = accept(vs->lsock, (struct sockaddr *)&addr, &addrlen);
static void FUNC_0(void *VAR_0)

{

    VncDisplay *vs = VAR_0;

    struct sockaddr_in VAR_1;

    socklen_t addrlen = sizeof(VAR_1);



    

    vga_hw_update();



    int VAR_2 = accept(vs->lsock, (struct sockaddr *)&VAR_1, &addrlen);

    if (VAR_2 != -1) {

        vnc_connect(vs, VAR_2);

    }

}

static void FUNC_0(void *VAR_0)
{ VncDisplay *vs = VAR_0; struct sockaddr_in VAR_1; socklen_t addrlen = sizeof(VAR_1); vga_hw_update(); int VAR_2 = accept(vs->lsock, (struct sockaddr *)&VAR_1, &addrlen); if (VAR_2 != -1) { vnc_connect(vs, VAR_2); } }