sockaddr

package
v0.0.0-...-ce94876 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: MIT, BSD-3-Clause Imports: 5 Imported by: 0

README

go-sockaddr - {Raw,}Sockaddr conversions

See https://groups.google.com/d/msg/golang-nuts/B-meiFfkmH0/-TxP1r6zvk8J This package extracts unexported code from golang.org/x/unix to help in converting between:

${platform}.Sockaddr
${platform}.RawSockaddrAny
C.struct_sockaddr_any
net.*Addr

Godoc:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyToCAny

AnyToCAny casts a *RawSockaddrAny to a *C.struct_sockaddr_any

func AnyToSockaddr

func AnyToSockaddr(rsa *sockaddrnet.RawSockaddrAny) (sockaddrnet.Sockaddr, error)

SockaddrToAny converts a RawSockaddrAny into a Sockaddr The implementation is platform dependent.

func CAnyToAny

CAnyToAny casts a *C.struct_sockaddr_any to a *RawSockaddrAny

Types

type Socklen

type Socklen uint

Socklen is a type for the length of a sockaddr.

func SockaddrToAny

SockaddrToAny converts a Sockaddr into a RawSockaddrAny The implementation is platform dependent.

Directories

Path Synopsis
package sockaddrnet provides conversions between net.Addr and Sockaddr
package sockaddrnet provides conversions between net.Addr and Sockaddr

Jump to

Keyboard shortcuts

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