C# Class Mono.Data.Tds.Protocol.TdsComm

Datei anzeigen Open project: kumpera/mono Class Usage Examples

Private Properties

Property Type Description
AppendInternal void
AppendInternal void
GetPhysicalPacket void
GetPhysicalPacketData void
GetPhysicalPacketHeader int
Ntohs int
Poll bool
Read int
ResizeOutBuf void
SendPhysicalPacket void
Store void
Store void

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Append() public method

public Append ( string s, int len, byte pad ) : byte[]
s string
len int
pad byte
return byte[]

Append() public method

public Append ( System.DateTime t, int bytes ) : void
t System.DateTime
bytes int
return void

Append() public method

public Append ( byte b ) : void
b byte
return void

Append() public method

public Append ( byte b, int len, byte pad ) : void
b byte
len int
pad byte
return void

Append() public method

public Append ( decimal d, int bytes ) : void
d decimal
bytes int
return void

Append() public method

public Append ( double value ) : void
value double
return void

Append() public method

public Append ( float value ) : void
value float
return void

Append() public method

public Append ( int i ) : void
i int
return void

Append() public method

public Append ( long l ) : void
l long
return void

Append() public method

public Append ( object o ) : void
o object
return void

Append() public method

public Append ( short s ) : void
s short
return void

Append() public method

public Append ( string s ) : void
s string
return void

Append() public method

public Append ( ushort s ) : void
s ushort
return void

BeginReadPacket() public method

public BeginReadPacket ( AsyncCallback callback, object stateObject ) : IAsyncResult
callback AsyncCallback
stateObject object
return IAsyncResult

Close() public method

public Close ( ) : void
return void

EndReadPacket() public method

public EndReadPacket ( IAsyncResult ar ) : int
ar IAsyncResult
return int

GetByte() public method

public GetByte ( ) : byte
return byte

GetBytes() public method

public GetBytes ( int len, bool exclusiveBuffer ) : byte[]
len int
exclusiveBuffer bool
return byte[]

GetNetShort() public method

public GetNetShort ( ) : int
return int

GetString() public method

public GetString ( int len ) : string
len int
return string

GetString() public method

public GetString ( int len, Encoding enc ) : string
len int
enc System.Text.Encoding
return string

GetString() public method

public GetString ( int len, bool wide ) : string
len int
wide bool
return string

GetString() public method

public GetString ( int len, bool wide, Encoding enc ) : string
len int
wide bool
enc System.Text.Encoding
return string

GetTdsInt() public method

public GetTdsInt ( ) : int
return int

GetTdsInt64() public method

public GetTdsInt64 ( ) : long
return long

GetTdsShort() public method

public GetTdsShort ( ) : short
return short

IsConnected() public method

public IsConnected ( ) : bool
return bool

OnReadPacketCallback() public method

public OnReadPacketCallback ( IAsyncResult socketAsyncResult ) : void
socketAsyncResult IAsyncResult
return void

Peek() public method

public Peek ( ) : byte
return byte

Poll() public method

public Poll ( int seconds, SelectMode selectMode ) : bool
seconds int
selectMode SelectMode
return bool

SendIfFull() public method

public SendIfFull ( ) : void
return void

SendIfFull() public method

public SendIfFull ( int reserve ) : void
reserve int
return void

SendPacket() public method

public SendPacket ( ) : void
return void

Skip() public method

public Skip ( long i ) : void
i long
return void

StartPacket() public method

public StartPacket ( TdsPacketType type ) : void
type TdsPacketType
return void

Swap() public method

public Swap ( byte toswap ) : byte[]
toswap byte
return byte[]

TdsComm() public method

public TdsComm ( string dataSource, int port, int packetSize, int timeout, TdsVersion tdsVersion ) : System
dataSource string
port int
packetSize int
timeout int
tdsVersion TdsVersion
return System