msgpack / msgpack-cli

MessagePack implementation for Common Language Infrastructure / msgpack.org[C#]
http://msgpack.org
Apache License 2.0
835 stars 175 forks source link

unpacker.next() counterpart #182

Closed nokinger closed 8 years ago

nokinger commented 8 years ago

Hi,

in msgpack C++ msgpack::unpacker::next() => returns true if one complete msgpack messege is proccessed.

Is there any counterpart for upacker.next in the msgpack-cli package?

yfakariya commented 8 years ago

Unpacker.Read(), then get LastReadData.

nokinger commented 8 years ago

thanks yfakariya.

I did something wrong on the c++ send side. I just recognized serializer.Unpack is a blocking call and returns only when a complete message is processed.

yfakariya commented 8 years ago

There is a ReadAsync which is aaynchronous(nonblocking) and awaitable. Note that async method has some overhead, and you should use buffering option on Unpacker.Create.

yfakariya commented 8 years ago

Closed because it is no response for answer. It is welcome to reopen for further question. Thank you for contribution.