getprotobyname function winsock
Retrieves the protocol information corresponding to a protocol name.
To learn more, see learn.microsoft.com/windows/win32/api/winsock/nf-winsock-getprotobyname.
Implementation
Win32Result<Pointer<PROTOENT>> getprotobyname(PCSTR name) {
final result_ = getprotobyname_Wrapper(name);
return .new(value: result_.value.ptr.cast(), error: result_.error);
}