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 uint16 = 1003 MCS_USERCHANNEL_BASE = 1001 )
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 }
*
- @see http://www.itu.int/rec/T-REC-T.125-199802-I/en page 25
- @param userData {Buffer}
- @returns {asn1.univ.Sequence}
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
*
- @see http://www.itu.int/rec/T-REC-T.125-199802-I/en page 25
- @returns {asn1.univ.Sequence}
func ReadDomainParameters ¶
func ReadDomainParameters(r io.Reader) (*DomainParameters, error)
func (*DomainParameters) BER ¶
func (d *DomainParameters) BER() []byte
type MCS ¶
func NewMCS ¶
func NewMCS(t core.Transport, recvOpCode MCSDomainPDU, sendOpCode MCSDomainPDU) *MCS
type MCSChannelInfo ¶
type MCSClient ¶
type MCSClient struct { *MCS // contains filtered or unexported fields }
func NewMCSClient ¶
type MCSDomainPDU ¶
type MCSDomainPDU uint16
type MCSMessage ¶
type MCSMessage uint8
const ( MCS_TYPE_CONNECT_INITIAL MCSMessage = 0x65 MCS_TYPE_CONNECT_RESPONSE = 0x66 )
Click to show internal directories.
Click to hide internal directories.