Help us shape the future of Go! Take the 2026 Go Developer Survey

sockaddr

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: BSD-3-Clause Imports: 4 Imported by: 5

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:


The last gx published version of this module was: 1.0.3: QmNzEyX7vjWiqinyLeavcAF1oegav6dZ1aQpAkYvG9m5Ze

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