C# Класс Mono.Data.Tds.Protocol.TdsComm

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AppendInternal void
AppendInternal void
GetPhysicalPacket void
GetPhysicalPacketData void
GetPhysicalPacketHeader int
Ntohs int
Poll bool
Read int
ResizeOutBuf void
SendPhysicalPacket void
Store void
Store void

Открытые методы

Метод Описание
Append ( string s, int len, byte pad ) : byte[]
Append ( System.DateTime t, int bytes ) : void
Append ( byte b ) : void
Append ( byte b, int len, byte pad ) : void
Append ( decimal d, int bytes ) : void
Append ( double value ) : void
Append ( float value ) : void
Append ( int i ) : void
Append ( long l ) : void
Append ( object o ) : void
Append ( short s ) : void
Append ( string s ) : void
Append ( ushort s ) : void
BeginReadPacket ( AsyncCallback callback, object stateObject ) : IAsyncResult
Close ( ) : void
EndReadPacket ( IAsyncResult ar ) : int
GetByte ( ) : byte
GetBytes ( int len, bool exclusiveBuffer ) : byte[]
GetNetShort ( ) : int
GetString ( int len ) : string
GetString ( int len, Encoding enc ) : string
GetString ( int len, bool wide ) : string
GetString ( int len, bool wide, Encoding enc ) : string
GetTdsInt ( ) : int
GetTdsInt64 ( ) : long
GetTdsShort ( ) : short
IsConnected ( ) : bool
OnReadPacketCallback ( IAsyncResult socketAsyncResult ) : void
Peek ( ) : byte
Poll ( int seconds, SelectMode selectMode ) : bool
SendIfFull ( ) : void
SendIfFull ( int reserve ) : void
SendPacket ( ) : void
Skip ( long i ) : void
StartPacket ( TdsPacketType type ) : void
Swap ( byte toswap ) : byte[]
TdsComm ( string dataSource, int port, int packetSize, int timeout, TdsVersion tdsVersion ) : System

Приватные методы

Метод Описание
AppendInternal ( int i ) : void
AppendInternal ( short s ) : void
GetPhysicalPacket ( ) : void
GetPhysicalPacketData ( int length ) : void
GetPhysicalPacketHeader ( ) : int
Ntohs ( byte buf, int offset ) : int
Poll ( Socket s, int seconds, SelectMode selectMode ) : bool
Read ( byte buffer, int offset, int count ) : int
ResizeOutBuf ( int newSize ) : void
SendPhysicalPacket ( bool isLastSegment ) : void
Store ( int index, byte value ) : void
Store ( int index, short value ) : void

Описание методов

Append() публичный Метод

public Append ( string s, int len, byte pad ) : byte[]
s string
len int
pad byte
Результат byte[]

Append() публичный Метод

public Append ( System.DateTime t, int bytes ) : void
t System.DateTime
bytes int
Результат void

Append() публичный Метод

public Append ( byte b ) : void
b byte
Результат void

Append() публичный Метод

public Append ( byte b, int len, byte pad ) : void
b byte
len int
pad byte
Результат void

Append() публичный Метод

public Append ( decimal d, int bytes ) : void
d decimal
bytes int
Результат void

Append() публичный Метод

public Append ( double value ) : void
value double
Результат void

Append() публичный Метод

public Append ( float value ) : void
value float
Результат void

Append() публичный Метод

public Append ( int i ) : void
i int
Результат void

Append() публичный Метод

public Append ( long l ) : void
l long
Результат void

Append() публичный Метод

public Append ( object o ) : void
o object
Результат void

Append() публичный Метод

public Append ( short s ) : void
s short
Результат void

Append() публичный Метод

public Append ( string s ) : void
s string
Результат void

Append() публичный Метод

public Append ( ushort s ) : void
s ushort
Результат void

BeginReadPacket() публичный Метод

public BeginReadPacket ( AsyncCallback callback, object stateObject ) : IAsyncResult
callback AsyncCallback
stateObject object
Результат IAsyncResult

Close() публичный Метод

public Close ( ) : void
Результат void

EndReadPacket() публичный Метод

public EndReadPacket ( IAsyncResult ar ) : int
ar IAsyncResult
Результат int

GetByte() публичный Метод

public GetByte ( ) : byte
Результат byte

GetBytes() публичный Метод

public GetBytes ( int len, bool exclusiveBuffer ) : byte[]
len int
exclusiveBuffer bool
Результат byte[]

GetNetShort() публичный Метод

public GetNetShort ( ) : int
Результат int

GetString() публичный Метод

public GetString ( int len ) : string
len int
Результат string

GetString() публичный Метод

public GetString ( int len, Encoding enc ) : string
len int
enc System.Text.Encoding
Результат string

GetString() публичный Метод

public GetString ( int len, bool wide ) : string
len int
wide bool
Результат string

GetString() публичный Метод

public GetString ( int len, bool wide, Encoding enc ) : string
len int
wide bool
enc System.Text.Encoding
Результат string

GetTdsInt() публичный Метод

public GetTdsInt ( ) : int
Результат int

GetTdsInt64() публичный Метод

public GetTdsInt64 ( ) : long
Результат long

GetTdsShort() публичный Метод

public GetTdsShort ( ) : short
Результат short

IsConnected() публичный Метод

public IsConnected ( ) : bool
Результат bool

OnReadPacketCallback() публичный Метод

public OnReadPacketCallback ( IAsyncResult socketAsyncResult ) : void
socketAsyncResult IAsyncResult
Результат void

Peek() публичный Метод

public Peek ( ) : byte
Результат byte

Poll() публичный Метод

public Poll ( int seconds, SelectMode selectMode ) : bool
seconds int
selectMode SelectMode
Результат bool

SendIfFull() публичный Метод

public SendIfFull ( ) : void
Результат void

SendIfFull() публичный Метод

public SendIfFull ( int reserve ) : void
reserve int
Результат void

SendPacket() публичный Метод

public SendPacket ( ) : void
Результат void

Skip() публичный Метод

public Skip ( long i ) : void
i long
Результат void

StartPacket() публичный Метод

public StartPacket ( TdsPacketType type ) : void
type TdsPacketType
Результат void

Swap() публичный Метод

public Swap ( byte toswap ) : byte[]
toswap byte
Результат byte[]

TdsComm() публичный Метод

public TdsComm ( string dataSource, int port, int packetSize, int timeout, TdsVersion tdsVersion ) : System
dataSource string
port int
packetSize int
timeout int
tdsVersion TdsVersion
Результат System