static void net_socket_receive(void *opaque, const uint8_t *buf, size_t size)

{

    NetSocketState *s = opaque;

    uint32_t len;

    len = htonl(size);



    send_all(s->fd, (const uint8_t *)&len, sizeof(len));

    send_all(s->fd, buf, size);

}

static void net_socket_receive(void *opaque, const uint8_t *buf, size_t size)

{

    NetSocketState *s = opaque;

    uint32_t len;

    len = htonl(size);



    send_all(s->fd, (const uint8_t *)&len, sizeof(len));

    send_all(s->fd, buf, size);

}

static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)

{

    NetSocketState *s = VAR_0;

    uint32_t len;

    len = htonl(VAR_2);



    send_all(s->fd, (const uint8_t *)&len, sizeof(len));

    send_all(s->fd, VAR_1, VAR_2);

}

static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)
{ NetSocketState *s = VAR_0; uint32_t len; len = htonl(VAR_2); send_all(s->fd, (const uint8_t *)&len, sizeof(len)); send_all(s->fd, VAR_1, VAR_2); }