| 195 | } |
| 196 | |
| 197 | void SocketBase::initHandle(int family) { |
| 198 | _handle = ::socket(family, SOCK_STREAM, 0); |
| 199 | if (_handle == -1) { |
| 200 | throw SocketException("socket error"); |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | int SocketBase::getFamily() const { |
| 205 | return _family; |
nothing calls this directly
no test coverage detected