t125

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERECT_DOMAIN_REQUEST          MCSDomainPDU = 1
	DISCONNECT_PROVIDER_ULTIMATUM              = 8
	ATTACH_USER_REQUEST                        = 10
	ATTACH_USER_CONFIRM                        = 11
	CHANNEL_JOIN_REQUEST                       = 14
	CHANNEL_JOIN_CONFIRM                       = 15
	SEND_DATA_REQUEST                          = 25
	SEND_DATA_INDICATION                       = 26
)
View Source
const (
	MCS_GLOBAL_CHANNEL_ID uint16 = 1003
	MCS_USERCHANNEL_BASE         = 1001
)
View Source
const (
	GLOBAL_CHANNEL_NAME = "global"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectInitial

type ConnectInitial struct {
	CallingDomainSelector []byte
	CalledDomainSelector  []byte
	UpwardFlag            bool
	TargetParameters      DomainParameters
	MinimumParameters     DomainParameters
	MaximumParameters     DomainParameters
	UserData              []byte
}

*

func NewConnectInitial

func NewConnectInitial(userData []byte) ConnectInitial

func (*ConnectInitial) BER

func (c *ConnectInitial) BER() []byte

type ConnectResponse

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

func NewConnectResponse

func NewConnectResponse(userData []byte) *ConnectResponse

func ReadConnectResponse

func ReadConnectResponse(r io.Reader) (*ConnectResponse, error)

type DomainParameters

type DomainParameters struct {
	MaxChannelIds   int
	MaxUserIds      int
	MaxTokenIds     int
	NumPriorities   int
	MinThoughput    int
	MaxHeight       int
	MaxMCSPDUsize   int
	ProtocolVersion int
}

func NewDomainParameters

func NewDomainParameters(
	maxChannelIds int,
	maxUserIds int,
	maxTokenIds int,
	numPriorities int,
	minThoughput int,
	maxHeight int,
	maxMCSPDUsize int,
	protocolVersion int) *DomainParameters

*

func ReadDomainParameters

func ReadDomainParameters(r io.Reader) (*DomainParameters, error)

func (*DomainParameters) BER

func (d *DomainParameters) BER() []byte

type MCS

type MCS struct {
	emission.Emitter
	// contains filtered or unexported fields
}

func NewMCS

func NewMCS(t core.Transport, recvOpCode MCSDomainPDU, sendOpCode MCSDomainPDU) *MCS

func (*MCS) Close

func (m *MCS) Close() error

func (*MCS) Read

func (x *MCS) Read(b []byte) (n int, err error)

func (*MCS) Write

func (x *MCS) Write(b []byte) (n int, err error)

type MCSChannelInfo

type MCSChannelInfo struct {
	ID   uint16
	Name string
}

type MCSClient

type MCSClient struct {
	*MCS
	// contains filtered or unexported fields
}

func NewMCSClient

func NewMCSClient(t core.Transport) *MCSClient

func (*MCSClient) Pack

func (c *MCSClient) Pack(data []byte, channelId uint16) []byte

func (*MCSClient) SendToChannel

func (c *MCSClient) SendToChannel(channel string, data []byte) (n int, err error)

func (*MCSClient) SetClientCoreData

func (c *MCSClient) SetClientCoreData(width, height uint16)

func (*MCSClient) Write

func (c *MCSClient) Write(data []byte) (n int, err error)

type MCSDomainPDU

type MCSDomainPDU uint16

type MCSMessage

type MCSMessage uint8
const (
	MCS_TYPE_CONNECT_INITIAL  MCSMessage = 0x65
	MCS_TYPE_CONNECT_RESPONSE            = 0x66
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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