This behaves exactly the same as Socket.receive, except that the choice of blocking or non-blocking behavior is determined by the blocking argument rather than by socket's properties.
a buffer to read data into (which should be at least size bytes long).
whether to do blocking or non-blocking I/O
a GCancellable or NULL
Number of bytes read, or 0 if the connection was closed by the peer, or -1 on error
GException on failure.
2.26
This behaves exactly the same as Socket.receive, except that the choice of blocking or non-blocking behavior is determined by the blocking argument rather than by socket's properties.