All Projects → tep → Net Peercredlistener

tep / Net Peercredlistener

Licence: mit
A net.Listener implementation leveraging Unix domain socket features to reliably identify client processes.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Net Peercredlistener

Grpc Vs Rest
Comparing gRPC + Protobuf with REST + JSON
Stars: ✭ 17 (+13.33%)
Mutual labels:  grpc
Grpc Jersey
gRPC<->Jersey bridge
Stars: ✭ 23 (+53.33%)
Mutual labels:  grpc
Gowebsocket
golang基于websocket单台机器支持百万连接分布式聊天(IM)系统
Stars: ✭ 937 (+6146.67%)
Mutual labels:  grpc
Grpc Gateway Generator
A script to generate a ready to use grpc-gateway with swagger, by just providing the path to the protos and a simple configuration file.
Stars: ✭ 18 (+20%)
Mutual labels:  grpc
Colossus
Colossus — An example microservice architecture for Kubernetes using Bazel, Go, Java, Docker, Kubernetes, Minikube, Gazelle, gRPC, Prometheus, Grafana, and more
Stars: ✭ 917 (+6013.33%)
Mutual labels:  grpc
Grpc Dotnet Validator
Simple request message validator for grpc.aspnet
Stars: ✭ 25 (+66.67%)
Mutual labels:  grpc
Tyk
Tyk Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols
Stars: ✭ 6,968 (+46353.33%)
Mutual labels:  grpc
Wombat
Cross platform gRPC client
Stars: ✭ 868 (+5686.67%)
Mutual labels:  grpc
Libra Sdk Go
Go SDK for the Libra cryptocurrency
Stars: ✭ 23 (+53.33%)
Mutual labels:  grpc
Danby
A webserver that's also a grpc proxy for browsers
Stars: ✭ 26 (+73.33%)
Mutual labels:  grpc
Grpc.jl
gRPC framework for Julia
Stars: ✭ 18 (+20%)
Mutual labels:  grpc
Rpc Thunderdome
A comparison between Proteus RPC and other commonly used RPC frameworks
Stars: ✭ 22 (+46.67%)
Mutual labels:  grpc
Blast
Blast is a full text search and indexing server, written in Go, built on top of Bleve.
Stars: ✭ 934 (+6126.67%)
Mutual labels:  grpc
Grpc
A proof of concept for a way to implement gRPC services in a code first way using C# and .NET Core.
Stars: ✭ 17 (+13.33%)
Mutual labels:  grpc
Go Micro Services
HTTP up front, Protobufs in the rear
Stars: ✭ 853 (+5586.67%)
Mutual labels:  grpc
Short
URL shortening service written in Go and React
Stars: ✭ 777 (+5080%)
Mutual labels:  grpc
Frosty
serialize native Nim types to strings, streams, or sockets ⛄
Stars: ✭ 25 (+66.67%)
Mutual labels:  sockets
Grpc Tools
A suite of gRPC debugging tools. Like Fiddler/Charles but for gRPC.
Stars: ✭ 881 (+5773.33%)
Mutual labels:  grpc
Grpc
An Elixir implementation of gRPC
Stars: ✭ 858 (+5620%)
Mutual labels:  grpc
Lnd Grpc Client
A python grpc client/async client for LND ⚡⚡⚡
Stars: ✭ 26 (+73.33%)
Mutual labels:  grpc

peercredlistener

import "toolman.org/net/peercredlistener"

Overview

Package peercredlistener is deprecated in favor of toolman.org/net/peercred.

Index

Package files

listener.go

Constants

const ErrAddrInUse = unix.EADDRINUSE

ErrAddrInUse is a convenience wrapper around the Posix errno value for EADDRINUSE. Deprecated: Use package toolman.org/net/peercred instead.

type PeerCredConn

type PeerCredConn struct {
    Ucred *unix.Ucred
    net.Conn
}

PeerCredConn is a net.Conn containing the process credentials for the client side of a Unix domain socket connection.

Deprecated: Use package toolman.org/net/peercred instead.

type PeerCredListener

type PeerCredListener struct {
    net.Listener
}

PeerCredListener is an implementation of net.Listener that extracts the identity (i.e. pid, uid, gid) from the connection's client process. This information is then made available through the Ucred member of the *PeerCredConn returned by AcceptPeerCred or Accept (after a type assertion).

Deprecated: Use package toolman.org/net/peercred instead.

func New

func New(ctx context.Context, addr string) (*PeerCredListener, error)

New returns a new PeerCredListener listening on the Unix domain socket addr.

Deprecated: Use package toolman.org/net/peercred instead.

func (*PeerCredListener) Accept

func (pcl *PeerCredListener) Accept() (net.Conn, error)

Accept is a convenience wrapper around AcceptPeerCred allowing PeerCredListener callers that utilize net.Listener to function as expected. The returned net.Conn is a *PeerCredConn which may be accessed through a type assertion. See AcceptPeerCred for details on possible error conditions.

Accept contributes to implementing the net.Listener interface.

Deprecated: Use package toolman.org/net/peercred instead.

func (*PeerCredListener) AcceptPeerCred

func (pcl *PeerCredListener) AcceptPeerCred() (*PeerCredConn, error)

AcceptPeerCred accepts a connection from the receiver's listener returning a *PeerCredConn containing the process credentials for the client. If the underlying Accept fails or if process credentials cannot be extracted, AcceptPeerCred returns nil and an error.

Deprecated: Use package toolman.org/net/peercred instead.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].