netfd

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 2 Imported by: 2

README

netfd

netfd is a Go package to get file descriptor from net.Conn or net.Listener.

Go Reference

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFdFromConn

func GetFdFromConn(c net.Conn) int

GetFdFromConn get net.Conn's file descriptor.

func GetFdFromListener

func GetFdFromListener(l net.Listener) int

GetFdFromListener get net.Listener's file descriptor.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL