프로퍼티 | 타입 | 설명 | |
---|---|---|---|
DefaultTrustedCertificatesPath | string |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
DefaultLocalCertificateSelectionCallback | |||
LoadTrustedCertificates | void | ||
ProcessAccept | void | ||
ProcessIntegratedSecurityAuthentication | void | ||
ProcessReceivePayloadAware | void | ||
ProcessReceivePayloadUnaware | void | ||
ProcessSend | void | ||
ProcessTlsAuthentication | void | ||
ReceivePayloadAsync | void | ||
ReceivePayloadAwareAsync | void | ||
ReceivePayloadUnawareAsync | void | ||
SendPayload | void | ||
TerminateConnection | void |
메소드 | 설명 | |
---|---|---|
DisconnectOne ( System.Guid clientID ) : void |
Disconnects the specified connected client.
|
|
LoadSettings ( ) : void |
Loads saved TcpServer settings from the config file if the ServerBase.PersistSettings property is set to true.
|
|
Read ( System.Guid clientID, byte buffer, int startIndex, int length ) : int |
Reads a number of bytes from the current received data buffer and writes those bytes into a byte array at the specified offset. This function should only be called from within the ServerBase.ReceiveClientData event handler. Calling this method outside this event will have unexpected results. |
|
SaveSettings ( ) : void |
Saves TcpServer settings to the config file if the ServerBase.PersistSettings property is set to true.
|
|
Start ( ) : void |
Starts the TcpServer synchronously and begins accepting client connections asynchronously.
|
|
Stop ( ) : void |
Stops the TcpServer synchronously and disconnects all connected clients.
|
|
TlsServer ( ) : System |
Initializes a new instance of the TcpServer class.
|
|
TlsServer ( IContainer container ) : System |
Initializes a new instance of the TcpServer class.
|
|
TlsServer ( string configString ) : System |
Initializes a new instance of the TcpServer class.
|
|
TryGetClient ( System.Guid clientID, TransportProvider |
Gets the TransportProvider{TlsSocket} object associated with the specified client ID.
|
|
TryGetClientPrincipal ( System.Guid clientID, |
Gets the WindowsPrincipal object associated with the specified client ID.
|
메소드 | 설명 | |
---|---|---|
SendDataToAsync ( System.Guid clientID, byte data, int offset, int length ) : |
Sends data to the specified client asynchronously.
|
|
ValidateConfigurationString ( string configurationString ) : void |
Validates the specified configurationString.
|
메소드 | 설명 | |
---|---|---|
DefaultLocalCertificateSelectionCallback ( object sender, string targetHost, |
Returns the certificate set by the user.
|
|
LoadTrustedCertificates ( ) : void |
Loads the list of trusted certificates into the default certificate checker.
|
|
ProcessAccept ( |
Callback method for asynchronous accept operation.
|
|
ProcessIntegratedSecurityAuthentication ( IAsyncResult asyncResult ) : void | ||
ProcessReceivePayloadAware ( IAsyncResult asyncResult ) : void |
Callback method for asynchronous receive operation of payload data in "payload-aware" mode.
|
|
ProcessReceivePayloadUnaware ( IAsyncResult asyncResult ) : void |
Callback method for asynchronous receive operation of payload data in "payload-unaware" mode.
|
|
ProcessSend ( IAsyncResult asyncResult ) : void |
Callback method for asynchronous send operation.
|
|
ProcessTlsAuthentication ( IAsyncResult asyncResult ) : void |
Callback method for asynchronous authenticate operation.
|
|
ReceivePayloadAsync ( TransportProvider |
Initiate method for asynchronous receive operation of payload data.
|
|
ReceivePayloadAwareAsync ( TransportProvider |
Initiate method for asynchronous receive operation of payload data in "payload-aware" mode.
|
|
ReceivePayloadUnawareAsync ( TransportProvider |
Initiate method for asynchronous receive operation of payload data in "payload-unaware" mode.
|
|
SendPayload ( TlsServerPayload payload ) : void |
Asynchronous loop sends payloads on the socket.
|
|
TerminateConnection ( TransportProvider |
Processes the termination of client.
|
public DisconnectOne ( System.Guid clientID ) : void | ||
clientID | System.Guid | ID of the client to be disconnected. |
리턴 | void |
public Read ( System.Guid clientID, byte buffer, int startIndex, int length ) : int | ||
clientID | System.Guid | ID of the client from which data buffer should be read. |
buffer | byte | Destination buffer used to hold copied bytes. |
startIndex | int | 0-based starting index into destination |
length | int | The number of bytes to read from current received data buffer and write into |
리턴 | int |
protected SendDataToAsync ( System.Guid clientID, byte data, int offset, int length ) : |
||
clientID | System.Guid | ID of the client to which the data is to be sent. |
data | byte | The buffer that contains the binary data to be sent. |
offset | int | The zero-based position in the |
length | int | The number of bytes to be sent from |
리턴 |
public TlsServer ( IContainer container ) : System | ||
container | IContainer | |
리턴 | System |
public TlsServer ( string configString ) : System | ||
configString | string | Config string of the |
리턴 | System |
public TryGetClient ( System.Guid clientID, TransportProvider |
||
clientID | System.Guid | ID of the client. |
tlsClient | TransportProvider |
The TLS client. |
리턴 | bool |
public TryGetClientPrincipal ( System.Guid clientID, |
||
clientID | System.Guid | ID of the client. |
clientPrincipal | The principal of the client. | |
리턴 | bool |
protected ValidateConfigurationString ( string configurationString ) : void | ||
configurationString | string | Configuration string to be validated. |
리턴 | void |