C# Класс UnitTest.TCPSocket

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

Защищенные свойства (Protected)

Свойство Тип Описание
m_oSocket Socket

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

Метод Описание
CanConnect ( int iPort ) : bool
Connect ( IPAddress ipaddress, int iPort ) : bool
Connect ( int iPort ) : bool
Disconnect ( ) : void
Peek ( ) : bool
ReadUntil ( List possibleReplies ) : string
ReadUntil ( string text ) : string
Receive ( ) : string
Send ( string s ) : void
TCPSocket ( ) : System
TCPSocket ( bool useSSL ) : System
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

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

Метод Описание
GetHostAddress ( string hostName, bool allowIPv6 ) : IPAddress

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

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

public CanConnect ( int iPort ) : bool
iPort int
Результат bool

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

public Connect ( IPAddress ipaddress, int iPort ) : bool
ipaddress System.Net.IPAddress
iPort int
Результат bool

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

public Connect ( int iPort ) : bool
iPort int
Результат bool

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

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

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

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

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

public ReadUntil ( List possibleReplies ) : string
possibleReplies List
Результат string

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

public ReadUntil ( string text ) : string
text string
Результат string

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

public Receive ( ) : string
Результат string

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

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

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

public TCPSocket ( ) : System
Результат System

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

public TCPSocket ( bool useSSL ) : System
useSSL bool
Результат System

ValidateServerCertificate() публичный статический Метод

public static ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslPolicyErrors SslPolicyErrors
Результат bool

Описание свойств

m_oSocket защищенное свойство

protected Socket m_oSocket
Результат Socket