Get the last error associated with the stream buffer.
const boost::system::error_code & puberror() const;
An error_code corresponding to the last error from the stream buffer.
error_code