IOAddress::fromBytes(short family, const uint8_t* data) {
if (data == NULL) {
isc_throw(BadValue, "NULL pointer received.");
- } else
- if ( (family != AF_INET) && (family != AF_INET6) ) {
+ } else if ((family != AF_INET) && (family != AF_INET6)) {
isc_throw(BadValue, "Invalid family type. Only AF_INET and AF_INET6"
<< "are supported");
}
///
/// This constructor is intended to be used when constructing
/// IPv4 address out of uint32_t type. Passed value must be in
- /// network byte order
+ /// host byte order.
///
/// @param v4address IPv4 address represented by uint32_t
IOAddress(uint32_t v4address);