C# Класс Miracle.FileZilla.Api.SocketCommunication

Base class used for communication with a socket
Наследование: IDisposable
Показать файл Открыть проект

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

Метод Описание
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