ssize_t vnc_client_write_buf(VncState *vs, const uint8_t *data, size_t datalen)

{

    ssize_t ret;

#ifdef CONFIG_VNC_TLS

    if (vs->tls.session) {

        ret = vnc_client_write_tls(&vs->tls.session, data, datalen);

    } else {

#endif /* CONFIG_VNC_TLS */

        ret = send(vs->csock, (const void *)data, datalen, 0);

#ifdef CONFIG_VNC_TLS

    }

#endif /* CONFIG_VNC_TLS */

    VNC_DEBUG("Wrote wire %p %zd -> %ld\n", data, datalen, ret);

    return vnc_client_io_error(vs, ret, socket_error());

}

ssize_t vnc_client_write_buf(VncState *vs, const uint8_t *data, size_t datalen)

{

    ssize_t ret;

#ifdef CONFIG_VNC_TLS

    if (vs->tls.session) {

        ret = vnc_client_write_tls(&vs->tls.session, data, datalen);

    } else {

#endif 

        ret = send(vs->csock, (const void *)data, datalen, 0);

#ifdef CONFIG_VNC_TLS

    }

#endif 

    VNC_DEBUG("Wrote wire %p %zd -> %ld\n", data, datalen, ret);

    return vnc_client_io_error(vs, ret, socket_error());

}

#ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS     } else {     if (vs->tls.session) { #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS     if (vs->tls.session) {         ret = vnc_client_write_tls(&vs->tls.session, data, datalen); #ifdef CONFIG_VNC_TLS     return vnc_client_io_error(vs, ret, socket_error()); #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS     if (vs->tls.session) { #ifdef CONFIG_VNC_TLS     return vnc_client_io_error(vs, ret, socket_error()); #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS #ifdef CONFIG_VNC_TLS
ssize_t FUNC_0(VncState *vs, const uint8_t *data, size_t datalen)

{

    ssize_t ret;

#ifdef CONFIG_VNC_TLS

    if (vs->tls.session) {

        ret = vnc_client_write_tls(&vs->tls.session, data, datalen);

    } else {

#endif 

        ret = send(vs->csock, (const void *)data, datalen, 0);

#ifdef CONFIG_VNC_TLS

    }

#endif 

    VNC_DEBUG("Wrote wire %p %zd -> %ld\n", data, datalen, ret);

    return vnc_client_io_error(vs, ret, socket_error());

}

ssize_t FUNC_0(VncState *vs, const uint8_t *data, size_t datalen)
{ ssize_t ret; #ifdef CONFIG_VNC_TLS
if (vs->tls.session) { ret = vnc_client_write_tls(&vs->tls.session, data, datalen); } else { #endif
ret = send(vs->csock, (const void *)data, datalen, 0); #ifdef CONFIG_VNC_TLS
} #endif
VNC_DEBUG("Wrote wire %p %zd -> %ld\n", data, datalen, ret); return vnc_client_io_error(vs, ret, socket_error()); }