| 143 | } |
| 144 | |
| 145 | bool |
| 146 | SocketDataWriter::close(void) |
| 147 | { |
| 148 | bool ok = true; |
| 149 | |
| 150 | if (this->fd != -1) { |
| 151 | ok = ::shutdown(this->fd, 2) == 0; |
| 152 | this->fd = -1; |
| 153 | } |
| 154 | |
| 155 | return ok; |
| 156 | } |
| 157 | |
| 158 | SocketDataWriter::~SocketDataWriter(void) |
| 159 | { |
no outgoing calls
no test coverage detected