Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio::serial_port] I can read and write synchronously, but how do I unblock when I want to end?
From: michi7x7 (michi_at_[hidden])
Date: 2012-02-11 09:55:06


Hi,

> - Calling close on the port: This generates an exception, which I can
> catch, but I was told I can't distinguish shutdown from error if I do this.

that's not true. asio will throw an
"boost::asio::error::operation_aborted" error-code.

HTH

michi7x7


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net