Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 3.4% dependent packages on proxy.golang.org
Top 3.5% dependent repos on proxy.golang.org

proxy.golang.org : toolman.org/net/peercred

Package peercred provides Listener - a net.Listener implementation leveraging the Linux SO_PEERCRED socket option to acquire the PID, UID, and GID of the foreign process connected to each socket. According to the socket(7) manual, Therefore, peercred.Listener only supports Unix domain sockets and IP connections are not available. peercred.Listener is intended for use cases where a Unix domain server needs to reliably identify the process on the client side of each connection. By itself, peercred provides support for simple "unix" socket connections. Additional support for gRPC over Unix domain sockets is available with the subordinate package toolman.org/net/peercred/grpcpeer. A simple, unix-domain server can be written similar to the following: NOTE: Currently, this package only works on Linux. MacOS and FreeBSD are on the todo list. Windows isn't (nor are other OSs).

Registry - Source - Documentation - JSON
purl: pkg:golang/toolman.org/net/peercred
Keywords: golang, golang-library, identification, linux, networking, socket-programming
License: MIT
Latest release: over 1 year ago
First release: almost 5 years ago
Namespace: toolman.org/net
Dependent packages: 3
Dependent repositories: 2
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 19 days ago

    Loading...
    Readme
    Loading...