Closed bremoran closed 8 years ago
cc @bogdanm @niklas-arm @0xc0170 @adbridge
Looks good to me.
This reminds me that we should document SocketAddr API
Please update this with the header documentation from #39 !
Would you like to add convenience functions like these? They make it a little safer to work with this API.
template< size_t N >
inline int fmtIPv4(char (&buf)[N]) {
return fmtIPv4(buf, N);
}
What do I do with the license for this?
I think it would be advisable to take care of the concern that @adbridge brought up above. The switch should not happen twice. It would be better to modify inet_pton to do the right thing.
@niklas-arm said +1 in a separate message. I'm merging this so that other PRs can progress.
inet_ntop(AF_INET6)
inet_ntop(AF_INET)
setAddr(socket_address_family_t af, char *)