listener

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithInitMsg

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

WithInitMsg sets options

func WithMode

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

WithMode sets SCTP mode

func WithNonBlocking

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

WithNonBlocking sets nonblocking

Types

type Listener

type Listener struct {
	connection.SCTPConn
	// contains filtered or unexported fields
}

Listener SCTP listener

func NewListener

func NewListener(laddr *addressing.Address, opts ...Option) (*Listener, error)

NewListener creates a new SCTP listener instance

func (*Listener) Accept

func (ln *Listener) Accept() (net.Conn, error)

Accept waits for and returns the next connection connection to the listener.

func (*Listener) SCTPRead

func (ln *Listener) SCTPRead(b []byte) (int, *types.OOBMessage, int, error)

SCTPRead reads from an SCTP connection

func (*Listener) SCTPWrite

func (ln *Listener) SCTPWrite(b []byte, info *types.SndRcvInfo) (int, error)

SCTPWrite writes on an SCTP connection

type Option

type Option func(options *Options)

Option listener options

type Options

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

Options SCTP listener options

Jump to

Keyboard shortcuts

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