Test if the socket was closed or it wasn't initialized.
| 80 | |
| 81 | /// Test if the socket was closed or it wasn't initialized. |
| 82 | bool |
| 83 | is_closed() const |
| 84 | { |
| 85 | return (_sock < 0); |
| 86 | } |
| 87 | |
| 88 | protected: |
| 89 | std::int64_t _safe_write(int fd, const char *buffer, int len); |