Documentation ¶
Index ¶
Constants ¶
View Source
const ( TPDU_CONNECTION_REQUEST MessageType = 0xE0 TPDU_CONNECTION_CONFIRM = 0xD0 TPDU_DISCONNECT_REQUEST = 0x80 TPDU_DATA = 0xF0 TPDU_ERROR = 0x70 )
View Source
const ( TYPE_RDP_NEG_REQ NegotiationType = 0x01 TYPE_RDP_NEG_RSP = 0x02 TYPE_RDP_NEG_FAILURE = 0x03 )
View Source
const ( PROTOCOL_RDP uint32 = 0x00000000 PROTOCOL_SSL = 0x00000001 PROTOCOL_HYBRID = 0x00000002 PROTOCOL_HYBRID_EX = 0x00000008 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConnectionRequestPDU ¶
type ClientConnectionRequestPDU struct { Len uint8 Code MessageType Padding1 uint16 Padding2 uint16 Padding3 uint8 Cookie []byte ProtocolNeg *Negotiation }
*
- X224 client connection request
- @param opt {object} component type options
- @see http://msdn.microsoft.com/en-us/library/cc240470.aspx
func NewClientConnectionRequestPDU ¶
func NewClientConnectionRequestPDU(coockie []byte) *ClientConnectionRequestPDU
func (*ClientConnectionRequestPDU) Serialize ¶
func (x *ClientConnectionRequestPDU) Serialize() []byte
type DataHeader ¶
type DataHeader struct { Header uint8 `struc:"little"` MessageType MessageType `struc:"uint8"` Separator uint8 `struc:"little"` }
*
- Header of each data message from x224 layer
- @returns {type.Component}
func NewDataHeader ¶
func NewDataHeader() *DataHeader
type Negotiation ¶
type Negotiation struct { Type NegotiationType `struc:"byte"` Flag uint8 `struc:"uint8"` Length uint16 `struc:"little"` Result uint32 `struc:"little"` }
*
- Use to negotiate security layer of RDP stack
- In node-rdpjs only ssl is available
- @param opt {object} component type options
- @see request -> http://msdn.microsoft.com/en-us/library/cc240500.aspx
- @see response -> http://msdn.microsoft.com/en-us/library/cc240506.aspx
- @see failure ->http://msdn.microsoft.com/en-us/library/cc240507.aspx
func NewNegotiation ¶
func NewNegotiation() *Negotiation
type NegotiationType ¶
type NegotiationType byte
*
- Type of negotiation present in negotiation packet
type ServerConnectionConfirm ¶
type ServerConnectionConfirm struct { Len uint8 Code MessageType Padding1 uint16 Padding2 uint16 Padding3 uint8 ProtocolNeg *Negotiation }
*
- X224 Server connection confirm
- @param opt {object} component type options
- @see http://msdn.microsoft.com/en-us/library/cc240506.aspx
type X224 ¶
*
- Common X224 Automata
- @param presentation {Layer} presentation layer
func (*X224) SetRequestedProtocol ¶
Click to show internal directories.
Click to hide internal directories.