sctp

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialSCTP

func DialSCTP(addr net.Addr, opts ...DialOption) (*connection.SCTPConn, error)

DialSCTP creates a new SCTP connection

func WithAddressFamily

func WithAddressFamily(family types.AddressFamily) func(options *DialOptions)

WithAddressFamily sets address family

func WithInitMsg

func WithInitMsg(initMsg types.InitMsg) func(options *DialOptions)

WithInitMsg sets options

func WithMode

func WithMode(mode types.SocketMode) func(options *DialOptions)

WithMode sets SCTP mode

func WithNonBlocking

func WithNonBlocking(nonblocking bool) func(options *DialOptions)

WithNonBlocking sets nonblocking

Types

type DialOption

type DialOption func(*DialOptions)

DialOption dial option function

type DialOptions

type DialOptions struct {
	// contains filtered or unexported fields
}

DialOptions is SCTP options

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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