virtual ~connection () = default;
+ connection (const connection &) = delete;
+ connection &operator= (const connection &) = delete;
+
// Send a single character. This is used to introduce various
// higher-level protocol elements.
status send (char c);
private:
- // Declared but not defined, to prevent use.
- connection (const connection &);
- connection &operator= (const connection &);
-
// Helper function for the wait_* methods.
status do_wait (bool);