TestAmf

package
v0.0.0-...-cad1217 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AmfKeyPath = path_util.Gofree5gcPath("free5gc/support/TLS/amf.key")
View Source
var AmfLogPath = path_util.Gofree5gcPath("free5gc/amfsslkey.log")
View Source
var AmfPemPath = path_util.Gofree5gcPath("free5gc/support/TLS/amf.pem")
View Source
var Laddr2 *sctp.SCTPAddr
View Source
var ServerAddr *sctp.SCTPAddr
View Source
var TestAmf = amf_context.AMF_Self()

Functions

func AmfInit

func AmfInit()

func BuildSmfNfProfile

func BuildSmfNfProfile() (uuId string, profile models.NfProfile)

func SctpConnectToServer

func SctpConnectToServer(anType models.AccessType)

func SctpSever

func SctpSever()

func UeAttach

func UeAttach(anType models.AccessType)

Types

type TestAddr

type TestAddr struct {
	Net   string
	Value string
}

func (*TestAddr) Network

func (addr *TestAddr) Network() string

func (*TestAddr) String

func (addr *TestAddr) String() string

type TestConn

type TestConn struct {
	RAddr *TestAddr
	LAddr *TestAddr
}

func (*TestConn) Close

func (c *TestConn) Close() error

Close closes the connection.

func (*TestConn) LocalAddr

func (c *TestConn) LocalAddr() net.Addr

func (*TestConn) Read

func (c *TestConn) Read(b []byte) (int, error)

Read implements the Conn Read method.

func (*TestConn) RemoteAddr

func (c *TestConn) RemoteAddr() net.Addr

func (*TestConn) SetDeadline

func (c *TestConn) SetDeadline(t time.Time) error

func (*TestConn) SetReadDeadline

func (c *TestConn) SetReadDeadline(t time.Time) error

func (*TestConn) SetWriteDeadline

func (c *TestConn) SetWriteDeadline(t time.Time) error

func (*TestConn) Write

func (c *TestConn) Write(b []byte) (int, error)

Write implements the Conn Write method.

Jump to

Keyboard shortcuts

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