priv->client,
data,
nbytes,
- (st->flags & VIR_STREAM_NONBLOCK));
+ (st->flags & VIR_STREAM_NONBLOCK),
+ flags);
VIR_DEBUG("Done %d", rv);
virNetClientPtr client,
char *data,
size_t nbytes,
- bool nonblock)
+ bool nonblock,
+ unsigned int flags)
{
int rv = -1;
size_t want;
- VIR_DEBUG("st=%p client=%p data=%p nbytes=%zu nonblock=%d",
- st, client, data, nbytes, nonblock);
+ VIR_DEBUG("st=%p client=%p data=%p nbytes=%zu nonblock=%d flags=%x",
+ st, client, data, nbytes, nonblock, flags);
+
+ virCheckFlags(0, -1);
+
virObjectLock(st);
if (!st->rx && !st->incomingEOF) {
virNetMessagePtr msg;