zeromq / zmqpp

0mq 'highlevel' C++ bindings
http://zeromq.github.io/zmqpp
Mozilla Public License 2.0
438 stars 195 forks source link

Respect the passed in length to socket::receive_raw #176

Closed mm120 closed 7 years ago

mm120 commented 7 years ago

The receive_raw function is passed the maximum size of the buffer in the length parameter. The documentation states that the function will write no more than this number of bytes. Make sure that this is the case.

Also, add a test case that tests this.