tdsparser

package module
v0.0.0-...-330b588 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NORMAL                     = 0x00
	EOM                        = 0x01
	IGNORE                     = 0x02
	RESET_CONNECTION           = 0x08
	RESET_CONNECTION_SKIP_TRAN = 0x10
)
View Source
const (
	SQL_BATCH                      = 1
	PRE_TDS7_LOGIN                 = 2
	RPC                            = 3
	TABULAR_RESULT                 = 4
	ATTENTION_SIGNAL               = 6
	BULK_LOAD_DATA                 = 7
	FEDERATED_AUTHENTICATION_TOKEN = 8
	TRANSACTION_MANAGER_REQUEST    = 14
	TDS7_LOGIN                     = 16
	SSPI                           = 17
	PRE_LOGIN                      = 18
)
View Source
const HEADER_SIZE = 8 // bytes

Variables

This section is empty.

Functions

This section is empty.

Types

type TDSHeader

type TDSHeader struct {
	Type     byte
	Status   byte
	Length   [2]byte
	SPID     [2]byte
	PacketID byte
	Window   byte
}

func (TDSHeader) String

func (header TDSHeader) String() string

type TDSPacket

type TDSPacket struct {
	Header  *TDSHeader
	Payload []byte
}

func (*TDSPacket) String

func (packet *TDSPacket) String() string

Jump to

Keyboard shortcuts

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