addressing

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 8 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressFamily

func GetAddressFamily(laddr *Address, raddr *Address) (family int, ipv6only bool)

GetAddressFamily returns family address

Types

type Address

type Address struct {
	IPAddrs       []net.IPAddr
	Port          int
	AddressFamily types.AddressFamily
}

Address SCTP address data structure

func ResolveAddress

func ResolveAddress(addressFamily types.AddressFamily, addrs string) (*Address, error)

ResolveAddress resolves an SCTP address

func (*Address) Network

func (a *Address) Network() string

Network returns network

func (*Address) String

func (a *Address) String() string

String converts to string representation

func (*Address) ToRawSockAddrBuf

func (a *Address) ToRawSockAddrBuf() []byte

ToRawSockAddrBuf ...

Jump to

Keyboard shortcuts

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