C# 클래스 RemObjects.InternetPack.Connection

상속: Stream, IDisposable, IConnectionTimeouts
파일 보기 프로젝트 열기: remobjects/internetpack 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CRLF Byte[]
LF Byte[]

공개 메소드들

메소드 설명
BeginConnect ( EndPoint endPoint, AsyncCallback callback, Object state ) : IAsyncResult
BeginConnect ( IPAddress address, Int32 port, AsyncCallback callback, Object state ) : IAsyncResult
BeginRead ( Byte buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state ) : IAsyncResult
BeginReadLine ( AsyncCallback callback, Object state ) : IAsyncResult
BeginWrite ( Byte buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state ) : IAsyncResult
BufferReadLine ( ) : String
Close ( ) : void
Connect ( EndPoint endPoint ) : void
Connect ( IPAddress address, Int32 port ) : void
Connection ( Binding binding ) : System
Connection ( Socket socket ) : System
Disconnect ( ) : void
Dispose ( ) : void
EndConnect ( IAsyncResult ar ) : void
EndRead ( IAsyncResult ar ) : Int32
EndReadLine ( IAsyncResult ar ) : String
EndWrite ( IAsyncResult ar ) : void
Flush ( ) : void
Init ( Socket socket ) : void
Read ( Byte buffer, Int32 offset, Int32 size ) : Int32
ReadLine ( ) : String
Receive ( Byte buffer ) : Int32
Receive ( Byte buffer, Int32 offset, Int32 size ) : Int32
ReceiveAllRemaining ( ) : Byte[]

Get data from connection until all bytes have been read (i.e., until Receive() returns 0). Uses a constant buffersize.

ReceiveAllRemaining ( Int32 bufferSize ) : Byte[]

Get data from connection until all bytes have been read (i.e., until Receive() returns 0). Uses a buffersize passed as a parameter.

ReceiveToStream ( Stream stream ) : void
ReceiveToStream ( Stream stream, System.Int64 size ) : void
ReceiveToStream ( Stream stream, System.Int64 size, Int32 bufferSize ) : void
ReceiveWhatsAvailable ( Byte buffer, Int32 offset, Int32 size ) : Int32
ResetStatistics ( ) : void
Seek ( System.Int64 offset, SeekOrigin origin ) : System.Int64
Send ( Byte buffer ) : Int32
Send ( Byte buffer, Int32 offset, Int32 size ) : Int32
SendFromStream ( Stream stream ) : void
SendFromStream ( Stream stream, System.Int64 size ) : void
SendFromStream ( Stream stream, System.Int64 size, Int32 bufferSize ) : void
SetLength ( System.Int64 length ) : void
SkipBytes ( Int32 size ) : void
ToString ( ) : String
Write ( Byte buffer, Int32 offset, Int32 size ) : void
WriteLine ( String line ) : void
WriteLineLF ( String line ) : void

보호된 메소드들

메소드 설명
BeginInitializeServerConnection ( AsyncCallback callback, Object state ) : IAsyncResult
DataSocketClose ( ) : void
DataSocketClose ( System.Boolean dispose ) : void
DataSocketConnect ( EndPoint endPoint ) : void
DataSocketReceiveWhatsAvaiable ( Byte buffer, Int32 offset, Int32 size ) : Int32
DataSocketSend ( Byte buffer ) : Int32
DataSocketSendAsMuchAsPossible ( Byte buffer, Int32 offset, Int32 size ) : Int32
EndInitializeServerConnection ( IAsyncResult ar ) : void
InitializeServerConnection ( ) : void
IntBeginRead ( Byte buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state ) : IAsyncResult
IntBeginWrite ( Byte buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state ) : IAsyncResult
IntEndRead ( IAsyncResult ar ) : Int32
IntEndWrite ( IAsyncResult ar ) : void
StartTimeoutTimer ( ) : void
StopTimeoutTimer ( ) : void
TriggerAsyncDisconnect ( ) : void
TriggerAsyncHaveIncompleteData ( ) : void
TriggerOnBytesReceived ( System.Int64 count ) : void
TriggerOnBytesSent ( System.Int64 count ) : void

비공개 메소드들

메소드 설명
Abort ( ) : void
DataSocketReceive ( Byte buffer, Int32 offset, Int32 size ) : Int32
DataSocketSend ( Byte buffer, Int32 offset, Int32 size ) : Int32
Init ( Binding binding ) : void
IntReadCallback ( IAsyncResult ar ) : void
IntReadLineCallback ( IAsyncResult ar ) : void
Receive ( Byte buffer, Int32 offset, Int32 size, System.Boolean block ) : Int32
SetDefaultValues ( ) : void
TimeoutElapsed ( Object sender ) : void

메소드 상세

BeginConnect() 공개 메소드

public BeginConnect ( EndPoint endPoint, AsyncCallback callback, Object state ) : IAsyncResult
endPoint System.Net.EndPoint
callback AsyncCallback
state Object
리턴 IAsyncResult

BeginConnect() 공개 메소드

public BeginConnect ( IPAddress address, Int32 port, AsyncCallback callback, Object state ) : IAsyncResult
address System.Net.IPAddress
port System.Int32
callback AsyncCallback
state Object
리턴 IAsyncResult

BeginInitializeServerConnection() 보호된 메소드

protected BeginInitializeServerConnection ( AsyncCallback callback, Object state ) : IAsyncResult
callback AsyncCallback
state Object
리턴 IAsyncResult

BeginRead() 공개 메소드

public BeginRead ( Byte buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state ) : IAsyncResult
buffer Byte
offset System.Int32
count System.Int32
callback AsyncCallback
state Object
리턴 IAsyncResult

BeginReadLine() 공개 메소드

public BeginReadLine ( AsyncCallback callback, Object state ) : IAsyncResult
callback AsyncCallback
state Object
리턴 IAsyncResult

BeginWrite() 공개 메소드

public BeginWrite ( Byte buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state ) : IAsyncResult
buffer Byte
offset System.Int32
count System.Int32
callback AsyncCallback
state Object
리턴 IAsyncResult

BufferReadLine() 공개 메소드

public BufferReadLine ( ) : String
리턴 String

Close() 공개 메소드

public Close ( ) : void
리턴 void

Connect() 공개 메소드

public Connect ( EndPoint endPoint ) : void
endPoint System.Net.EndPoint
리턴 void

Connect() 공개 메소드

public Connect ( IPAddress address, Int32 port ) : void
address System.Net.IPAddress
port System.Int32
리턴 void

Connection() 공개 메소드

public Connection ( Binding binding ) : System
binding Binding
리턴 System

Connection() 공개 메소드

public Connection ( Socket socket ) : System
socket Socket
리턴 System

DataSocketClose() 보호된 메소드

protected DataSocketClose ( ) : void
리턴 void

DataSocketClose() 보호된 메소드

protected DataSocketClose ( System.Boolean dispose ) : void
dispose System.Boolean
리턴 void

DataSocketConnect() 보호된 메소드

protected DataSocketConnect ( EndPoint endPoint ) : void
endPoint System.Net.EndPoint
리턴 void

DataSocketReceiveWhatsAvaiable() 보호된 메소드

protected DataSocketReceiveWhatsAvaiable ( Byte buffer, Int32 offset, Int32 size ) : Int32
buffer Byte
offset System.Int32
size System.Int32
리턴 System.Int32

DataSocketSend() 보호된 메소드

protected DataSocketSend ( Byte buffer ) : Int32
buffer Byte
리턴 System.Int32

DataSocketSendAsMuchAsPossible() 보호된 메소드

protected DataSocketSendAsMuchAsPossible ( Byte buffer, Int32 offset, Int32 size ) : Int32
buffer Byte
offset System.Int32
size System.Int32
리턴 System.Int32

Disconnect() 공개 메소드

public Disconnect ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EndConnect() 공개 메소드

public EndConnect ( IAsyncResult ar ) : void
ar IAsyncResult
리턴 void

EndInitializeServerConnection() 보호된 메소드

protected EndInitializeServerConnection ( IAsyncResult ar ) : void
ar IAsyncResult
리턴 void

EndRead() 공개 메소드

public EndRead ( IAsyncResult ar ) : Int32
ar IAsyncResult
리턴 System.Int32

EndReadLine() 공개 메소드

public EndReadLine ( IAsyncResult ar ) : String
ar IAsyncResult
리턴 String

EndWrite() 공개 메소드

public EndWrite ( IAsyncResult ar ) : void
ar IAsyncResult
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

Init() 공개 메소드

public Init ( Socket socket ) : void
socket Socket
리턴 void

InitializeServerConnection() 보호된 메소드

protected InitializeServerConnection ( ) : void
리턴 void

IntBeginRead() 보호된 메소드

protected IntBeginRead ( Byte buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state ) : IAsyncResult
buffer Byte
offset System.Int32
count System.Int32
callback AsyncCallback
state Object
리턴 IAsyncResult

IntBeginWrite() 보호된 메소드

protected IntBeginWrite ( Byte buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state ) : IAsyncResult
buffer Byte
offset System.Int32
count System.Int32
callback AsyncCallback
state Object
리턴 IAsyncResult

IntEndRead() 보호된 메소드

protected IntEndRead ( IAsyncResult ar ) : Int32
ar IAsyncResult
리턴 System.Int32

IntEndWrite() 보호된 메소드

protected IntEndWrite ( IAsyncResult ar ) : void
ar IAsyncResult
리턴 void

Read() 공개 메소드

public Read ( Byte buffer, Int32 offset, Int32 size ) : Int32
buffer Byte
offset System.Int32
size System.Int32
리턴 System.Int32

ReadLine() 공개 메소드

public ReadLine ( ) : String
리턴 String

Receive() 공개 메소드

public Receive ( Byte buffer ) : Int32
buffer Byte
리턴 System.Int32

Receive() 공개 메소드

public Receive ( Byte buffer, Int32 offset, Int32 size ) : Int32
buffer Byte
offset System.Int32
size System.Int32
리턴 System.Int32

ReceiveAllRemaining() 공개 메소드

Get data from connection until all bytes have been read (i.e., until Receive() returns 0). Uses a constant buffersize.
public ReceiveAllRemaining ( ) : Byte[]
리턴 Byte[]

ReceiveAllRemaining() 공개 메소드

Get data from connection until all bytes have been read (i.e., until Receive() returns 0). Uses a buffersize passed as a parameter.
public ReceiveAllRemaining ( Int32 bufferSize ) : Byte[]
bufferSize System.Int32 Size of receive buffer used for each pass
리턴 Byte[]

ReceiveToStream() 공개 메소드

public ReceiveToStream ( Stream stream ) : void
stream Stream
리턴 void

ReceiveToStream() 공개 메소드

public ReceiveToStream ( Stream stream, System.Int64 size ) : void
stream Stream
size System.Int64
리턴 void

ReceiveToStream() 공개 메소드

public ReceiveToStream ( Stream stream, System.Int64 size, Int32 bufferSize ) : void
stream Stream
size System.Int64
bufferSize System.Int32
리턴 void

ReceiveWhatsAvailable() 공개 메소드

public ReceiveWhatsAvailable ( Byte buffer, Int32 offset, Int32 size ) : Int32
buffer Byte
offset System.Int32
size System.Int32
리턴 System.Int32

ResetStatistics() 공개 메소드

public ResetStatistics ( ) : void
리턴 void

Seek() 공개 메소드

public Seek ( System.Int64 offset, SeekOrigin origin ) : System.Int64
offset System.Int64
origin SeekOrigin
리턴 System.Int64

Send() 공개 메소드

public Send ( Byte buffer ) : Int32
buffer Byte
리턴 System.Int32

Send() 공개 메소드

public Send ( Byte buffer, Int32 offset, Int32 size ) : Int32
buffer Byte
offset System.Int32
size System.Int32
리턴 System.Int32

SendFromStream() 공개 메소드

public SendFromStream ( Stream stream ) : void
stream Stream
리턴 void

SendFromStream() 공개 메소드

public SendFromStream ( Stream stream, System.Int64 size ) : void
stream Stream
size System.Int64
리턴 void

SendFromStream() 공개 메소드

public SendFromStream ( Stream stream, System.Int64 size, Int32 bufferSize ) : void
stream Stream
size System.Int64
bufferSize System.Int32
리턴 void

SetLength() 공개 메소드

public SetLength ( System.Int64 length ) : void
length System.Int64
리턴 void

SkipBytes() 공개 메소드

public SkipBytes ( Int32 size ) : void
size System.Int32
리턴 void

StartTimeoutTimer() 보호된 메소드

protected StartTimeoutTimer ( ) : void
리턴 void

StopTimeoutTimer() 보호된 메소드

protected StopTimeoutTimer ( ) : void
리턴 void

ToString() 공개 메소드

public ToString ( ) : String
리턴 String

TriggerAsyncDisconnect() 보호된 메소드

protected TriggerAsyncDisconnect ( ) : void
리턴 void

TriggerAsyncHaveIncompleteData() 보호된 메소드

protected TriggerAsyncHaveIncompleteData ( ) : void
리턴 void

TriggerOnBytesReceived() 보호된 메소드

protected TriggerOnBytesReceived ( System.Int64 count ) : void
count System.Int64
리턴 void

TriggerOnBytesSent() 보호된 메소드

protected TriggerOnBytesSent ( System.Int64 count ) : void
count System.Int64
리턴 void

Write() 공개 메소드

public Write ( Byte buffer, Int32 offset, Int32 size ) : void
buffer Byte
offset System.Int32
size System.Int32
리턴 void

WriteLine() 공개 메소드

public WriteLine ( String line ) : void
line String
리턴 void

WriteLineLF() 공개 메소드

public WriteLineLF ( String line ) : void
line String
리턴 void

프로퍼티 상세

CRLF 공개적으로 프로퍼티

public Byte[] CRLF
리턴 Byte[]

LF 공개적으로 프로퍼티

public Byte[] LF
리턴 Byte[]