C# 클래스 org.GraphDefined.Vanaheimr.Hermod.Sockets.TCP.TCPClient

파일 보기 프로젝트 열기: Vanaheimr/Hermod

공개 프로퍼티들

프로퍼티 타입 설명
_ConnectionTimeout System.TimeSpan

공개 메소드들

메소드 설명
Connect ( ) : TCPConnectResult
Disconnect ( ) : TCPDisconnectResult
TCPClient ( String RemoteHost, IPPort RemotePort, System.Boolean UseIPv4 = true, System.Boolean UseIPv6 = false, System.Boolean PreferIPv6 = false, TLSUsage UseTLS = TLSUsage.STARTTLS, ValidateRemoteCertificateDelegate ValidateServerCertificate = null, System.TimeSpan ConnectionTimeout = null, DNSClient DNSClient = null, System.Boolean AutoConnect = false, CancellationToken CancellationToken = null ) : System

TCPClient ( String DNSName = "", String ServiceName = "", System.Boolean UseIPv4 = true, System.Boolean UseIPv6 = false, System.Boolean PreferIPv6 = false, System.Boolean UseTLS = false, System.TimeSpan ConnectionTimeout = null, DNSClient DNSClient = null, System.Boolean AutoConnect = false ) : System

Create a new TCPClient connecting to a remote service using DNS SRV records.

보호된 메소드들

메소드 설명
EnableTLS ( ) : void

비공개 메소드들

메소드 설명
CreateAndConnectTCPSocket ( IIPAddress _IPAddress, IPPort Port ) : Socket
QueryDNS ( ) : void
Reconnect ( ) : System.Boolean
_ValidateRemoteCertificate ( Object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors ) : System.Boolean

메소드 상세

Connect() 공개 메소드

public Connect ( ) : TCPConnectResult
리턴 TCPConnectResult

Disconnect() 공개 메소드

public Disconnect ( ) : TCPDisconnectResult
리턴 TCPDisconnectResult

EnableTLS() 보호된 메소드

protected EnableTLS ( ) : void
리턴 void

TCPClient() 공개 메소드

public TCPClient ( String RemoteHost, IPPort RemotePort, System.Boolean UseIPv4 = true, System.Boolean UseIPv6 = false, System.Boolean PreferIPv6 = false, TLSUsage UseTLS = TLSUsage.STARTTLS, ValidateRemoteCertificateDelegate ValidateServerCertificate = null, System.TimeSpan ConnectionTimeout = null, DNSClient DNSClient = null, System.Boolean AutoConnect = false, CancellationToken CancellationToken = null ) : System
RemoteHost String
RemotePort IPPort
UseIPv4 System.Boolean Whether to use IPv4 as networking protocol.
UseIPv6 System.Boolean Whether to use IPv6 as networking protocol.
PreferIPv6 System.Boolean Prefer IPv6 (instead of IPv4) as networking protocol.
UseTLS TLSUsage Whether Transport Layer Security should be used or not.
ValidateServerCertificate ValidateRemoteCertificateDelegate A callback for validating the remote server certificate.
ConnectionTimeout System.TimeSpan The timeout connecting to the remote service.
DNSClient DNSClient An optional DNS client used to resolve DNS names.
AutoConnect System.Boolean Connect to the TCP service automatically on startup. Default is false.
CancellationToken System.Threading.CancellationToken
리턴 System

TCPClient() 공개 메소드

Create a new TCPClient connecting to a remote service using DNS SRV records.
public TCPClient ( String DNSName = "", String ServiceName = "", System.Boolean UseIPv4 = true, System.Boolean UseIPv6 = false, System.Boolean PreferIPv6 = false, System.Boolean UseTLS = false, System.TimeSpan ConnectionTimeout = null, DNSClient DNSClient = null, System.Boolean AutoConnect = false ) : System
DNSName String The optional DNS name of the remote service to connect to.
ServiceName String The optional DNS SRV service name of the remote service to connect to.
UseIPv4 System.Boolean Whether to use IPv4 as networking protocol.
UseIPv6 System.Boolean Whether to use IPv6 as networking protocol.
PreferIPv6 System.Boolean Prefer IPv6 (instead of IPv4) as networking protocol.
UseTLS System.Boolean
ConnectionTimeout System.TimeSpan The timeout connecting to the remote service.
DNSClient DNSClient An optional DNS client used to resolve DNS names.
AutoConnect System.Boolean Connect to the TCP service automatically on startup. Default is false.
리턴 System

프로퍼티 상세

_ConnectionTimeout 공개적으로 프로퍼티

public TimeSpan,System _ConnectionTimeout
리턴 System.TimeSpan