add getprotobyname (#15273)

* add getprotobyname

* tests, docs, changelog

* add since
This commit is contained in:
flywind 2020-09-09 18:47:22 +08:00 • committed by GitHub
commit 8c82144ba5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 0 deletions

View file

@ -168,6 +168,9 @@
cannot be applied to every use case. The limitations and the (lack of) reliability
of `round` are well documented.
- Add `getprotobyname` to `winlean`. Add `getProtoByname` to `nativesockets` which returns a protocol code
from the database that matches the protocol `name`.
## Language changes