static void net_socket_send_dgram(void *opaque)

{

    NetSocketState *s = opaque;

    int size;



    size = qemu_recv(s->fd, s->buf, sizeof(s->buf), 0);

    if (size < 0)

        return;

    if (size == 0) {

        /* end of connection */

        net_socket_read_poll(s, false);

        net_socket_write_poll(s, false);

        return;

    }

    qemu_send_packet(&s->nc, s->buf, size);

}

static void net_socket_send_dgram(void *opaque)

{

    NetSocketState *s = opaque;

    int size;



    size = qemu_recv(s->fd, s->buf, sizeof(s->buf), 0);

    if (size < 0)

        return;

    if (size == 0) {

        

        net_socket_read_poll(s, false);

        net_socket_write_poll(s, false);

        return;

    }

    qemu_send_packet(&s->nc, s->buf, size);

}

static void FUNC_0(void *VAR_0)

{

    NetSocketState *s = VAR_0;

    int VAR_1;



    VAR_1 = qemu_recv(s->fd, s->buf, sizeof(s->buf), 0);

    if (VAR_1 < 0)

        return;

    if (VAR_1 == 0) {

        

        net_socket_read_poll(s, false);

        net_socket_write_poll(s, false);

        return;

    }

    qemu_send_packet(&s->nc, s->buf, VAR_1);

}

static void FUNC_0(void *VAR_0)
{ NetSocketState *s = VAR_0; int VAR_1; VAR_1 = qemu_recv(s->fd, s->buf, sizeof(s->buf), 0); if (VAR_1 < 0)
return; if (VAR_1 == 0) { net_socket_read_poll(s, false); net_socket_write_poll(s, false); return; } qemu_send_packet(&s->nc, s->buf, VAR_1); }