Merge pull request #256 from trevorbernard/master

Update for 4.0
Fix issue #257 - recvByteBuffer fails if message length is bigger than ByteBuffer limit