n3iwf_message

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxChannel int = 100000
)

Variables

View Source
var N3iwfChannel chan HandlerMessage

Functions

func SendMessage

func SendMessage(msg HandlerMessage)

Types

type Event

type Event int
const (
	EventN1UDPMessage Event = iota
	EventN1TunnelCPMessage
	EventN1TunnelUPMessage
	EventSCTPConnectMessage
	EventNGAPMessage
	EventGTPMessage
	EventTimerSendRanConfigUpdateMessage
)

type HandlerMessage

type HandlerMessage struct {
	Event       Event
	UDPSendInfo *UDPSendInfoGroup // used only when Event == EventN1UDPMessage
	SCTPAddr    string            // used when Event == EventNGAPMessage || Event == EventSCTPConnectMessage
	UEInnerIP   string            // used when Event == EventN1TunnelCPMessage || Event == EventN1TunnelUPMessage
	TEID        uint32            // used only when Event == EventGTPMessage
	Value       interface{}
}

type UDPSendInfoGroup

type UDPSendInfoGroup struct {
	ChannelID int
	Addr      *net.UDPAddr
}

Jump to

Keyboard shortcuts

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