n3iwf_sctp

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NGAP_PPID_BigEndian = 0x3c000000

Variables

This section is empty.

Functions

func InitiateSCTP

func InitiateSCTP(wg *sync.WaitGroup)

InitiateSCTP initiate the N3IWF SCTP process.

func ReleaseSession

func ReleaseSession(sctpAddr string) (ok bool)

func Send

func Send(sctpAddr string, data []byte) (ok bool)

func SetupSCTPConnection

func SetupSCTPConnection(amfAddr []factory.ConfigAMFAddr, wg *sync.WaitGroup)

Types

type SCTPSession

type SCTPSession struct {
	Address  string
	Port     int
	SCTPAddr string
	Conn     *sctp.SCTPConn
}

func (*SCTPSession) ClientListen

func (session *SCTPSession) ClientListen(wg *sync.WaitGroup)

func (*SCTPSession) Close

func (session *SCTPSession) Close() (err error)

func (*SCTPSession) Connect

func (session *SCTPSession) Connect() (sctpAddr string, err error)

func (*SCTPSession) Send

func (session *SCTPSession) Send(data []byte) (err error)

Jump to

Keyboard shortcuts

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