C# 클래스 Miracle.FileZilla.Api.SocketCommunication

Base class used for communication with a socket
상속: IDisposable
파일 보기 프로젝트 열기: PolarbearDK/Miracle.FileZilla.Api

공개 메소드들

메소드 설명
Dispose ( ) : void

Implementation of IDisposable interface

보호된 메소드들

메소드 설명
Connect ( ) : void

Connect socket to endpoint

Disconnect ( ) : void

Disconnect socket

Dispose ( bool disposing ) : void

Dispose object

LogData ( string text, byte bytes ) : void

Write data to log as hex dump. (Set Log parameter to activate)

Receive ( ) : byte[]

Receive data from socket.

Send ( byte data ) : void

Send data to socket

SocketCommunication ( IPAddress address, int port ) : System

Construct admin socket on specific IP and port.

메소드 상세

Connect() 보호된 메소드

Connect socket to endpoint
protected Connect ( ) : void
리턴 void

Disconnect() 보호된 메소드

Disconnect socket
protected Disconnect ( ) : void
리턴 void

Dispose() 공개 메소드

Implementation of IDisposable interface
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Dispose object
protected Dispose ( bool disposing ) : void
disposing bool Dispose unmanaged resources?
리턴 void

LogData() 보호된 메소드

Write data to log as hex dump. (Set Log parameter to activate)
protected LogData ( string text, byte bytes ) : void
text string Label to write before hex dump
bytes byte Data bytes to hex dump
리턴 void

Receive() 보호된 메소드

Receive data from socket.
/// if BufferSize is too small ///
protected Receive ( ) : byte[]
리턴 byte[]

Send() 보호된 메소드

Send data to socket
protected Send ( byte data ) : void
data byte Binary data to send
리턴 void

SocketCommunication() 보호된 메소드

Construct admin socket on specific IP and port.
protected SocketCommunication ( IPAddress address, int port ) : System
address System.Net.IPAddress IP address of filezilla server.
port int Admin port as specified when FileZilla server were installed
리턴 System