Gets the last error associated with the stream buffer.
const boost::system::error_code & puberror() const;
Return Value
An error_code
corresponding
to the last error from the stream buffer.
Remarks
Returns error()
.