cmpptest

package
v0.0.0-...-17c6332 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a mock SMGW server

func NewServer

func NewServer(addr string) (*Server, error)

func (*Server) Run

func (s *Server) Run()

func (*Server) Stop

func (s *Server) Stop()

type Session

type Session struct {
	connp.Conn
}

代表sp->运营商的一条连接

func (*Session) ActiveTest

func (s *Session) ActiveTest() error

func (*Session) ActiveTestResp

func (s *Session) ActiveTestResp(sequenceID uint32) error

func (*Session) ConnectResp

func (s *Session) ConnectResp(
	sequenceID uint32, status uint8, auth string) error

func (*Session) Deliver

func (s *Session) Deliver(isReport uint8, content []byte) error

func (*Session) QueryResp

func (s *Session) QueryResp(
	sequenceID uint32,
	time string, queryTye uint8, queryCode string,
	MT_TLMsg, MT_Tlusr uint32,
	MT_Scs, MT_WT, MT_FL, MO_Scs, MO_WT, MO_FL uint32,
) error

func (*Session) SubmitResp

func (s *Session) SubmitResp(sequenceID uint32, msgId uint64, result uint8) error

func (*Session) TerminateResp

func (s *Session) TerminateResp(sequenceID uint32) error

Jump to

Keyboard shortcuts

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