Version: v3.0.0+incompatible Latest Latest

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

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




This section is empty.


View Source
var NGAP_PPID uint32 = 60


func Accept

func Accept(sctpLn *sctp.SCTPListener) (*sctp.SCTPConn, error)

Accept - Accepting SCTP socket

func Destroy

func Destroy(ln *sctp.SCTPListener) error

Destroy - Destroy the SCTP Server Resource

func SendMsg

func SendMsg(conn net.Conn, msg []byte) error

SendMsg - used to send out message to SCTP connection

func Server

func Server(addrStr string) *sctp.SCTPListener

Server - Init SCTP Server, Set initial value / resource

func Start

func Start(conn *sctp.SCTPConn, readChan chan ConnData)

Start - Start SCTP read channel


type ConnData

type ConnData struct {
	// contains filtered or unexported fields

ConnData structure that pair the connection and data together

func (ConnData) GetData

func (cd ConnData) GetData() []byte

GetData Return the Data of ConnData structure

func (ConnData) GetError

func (cd ConnData) GetError() error

GetError Return the Error of ConnData structure

func (ConnData) GetRAddr

func (cd ConnData) GetRAddr() string

GetRAddr Return the Remote Addr of ConnData structure

Source Files

Jump to

Keyboard shortcuts

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