Signal that the peer performed orderly shutdown

This commit is contained in:
Martin Hurton
2013-10-09 10:51:30 +02:00
parent e66b42f363
commit 05d5962872
2 changed files with 39 additions and 45 deletions

View File

@@ -87,10 +87,9 @@ namespace zmq
// of error or orderly shutdown by the other peer -1 is returned.
int write (const void *data_, size_t size_);
// Reads data from the socket (up to 'size' bytes). Returns the number
// of bytes actually read (even zero is to be considered to be
// a success). In case of error or orderly shutdown by the other
// peer -1 is returned.
// Reads data from the socket (up to 'size' bytes).
// Returns the number of bytes actually read or -1 on error.
// Zero indicates the peer has closed the connection.
int read (void *data_, size_t size_);
int read_identity (msg_t *msg_);