Method | Description | |
---|---|---|
Accept ( ) : |
Creates a new SecureSocket to handle an incoming connection request. The returned VirtualSocket can be cast to a SecureSocket if necessary. |
|
BeginAccept ( AsyncCallback callback, object state ) : IAsyncResult |
Begins an asynchronous request to create a new SecureSocket to accept an incoming connection request.
|
|
BeginConnect ( |
Begins an asynchronous request for a connection to a network device.
|
|
BeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult |
Begins to asynchronously receive data from a connected SecureSocket.
|
|
BeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult |
Sends data asynchronously to a connected SecureSocket.
|
|
BeginShutdown ( AsyncCallback callback, object state ) : IAsyncResult |
Begins an asynchronous request to shut the connection down.
|
|
ChangeSecurityProtocol ( Org.Mentalis.Security.Ssl.SecurityOptions options ) : void |
Changes the security protocol. This method can only be used to 'upgrade' a connection from no-security to either SSL or TLS. Programs should only call this method if there is no active Connect, Accept, Send or Receive! |
|
Close ( ) : void |
Forces a SecureSocket connection to close.
|
|
Connect ( |
Establishes a connection to a remote device and optionally negotiates a secure transport protocol.
|
|
EndAccept ( IAsyncResult asyncResult ) : |
Ends an asynchronous request to create a new SecureSocket to accept an incoming connection request. The returned VirtualSocket can be cast to a SecureSocket if necessary. |
|
EndConnect ( IAsyncResult asyncResult ) : void |
Ends a pending asynchronous connection request.
|
|
EndReceive ( IAsyncResult asyncResult ) : int |
Ends a pending asynchronous read.
|
|
EndSend ( IAsyncResult asyncResult ) : int |
Ends a pending asynchronous send.
|
|
EndShutdown ( IAsyncResult asyncResult ) : void |
Ends an asynchronous request to shut the connection down.
|
|
Poll ( int microSeconds, SelectMode mode ) : bool |
Determines the status of the VirtualSocket. This property is not supported for SSL/TLS sockets. It can only be used if the SecureProtocol is set to None. Asynchronous behavior in SSL or TLS mode can be achieved by calling the asynchronous methods.Set microSeconds parameter to a negative integer if you would like to wait indefinitely for a response. |
|
QueueRenegotiate ( ) : void |
Queues a renegotiation request. Use the QueueRenegotiate function with caution. Some SSL/TLS clients or server do not support renegotiation. For instance, requesting a renegotiation in the middle of sending a HTTP request to a MS IIS server causes the connection to be shut down. Renegotiations should only be used when a small private key [512 bits] is used and the connection is active for a long period of time. |
|
Receive ( byte buffer ) : int |
Receives data from a connected SecureSocket into a specific location of the receive buffer.
|
|
Receive ( byte buffer, SocketFlags socketFlags ) : int |
Receives data from a connected SecureSocket into a specific location of the receive buffer.
|
|
Receive ( byte buffer, int size, SocketFlags socketFlags ) : int |
Receives data from a connected SecureSocket into a specific location of the receive buffer.
|
|
Receive ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int |
Receives data from a connected SecureSocket into a specific location of the receive buffer.
|
|
SecureSocket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : System |
Initializes a new instance of the SecureSocket class. The SecureSocket will act like a normal Socket and will not use a secure transfer protocol. |
|
SecureSocket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, Org.Mentalis.Security.Ssl.SecurityOptions options ) : System |
Initializes a new instance of the SecureSocket class.
|
|
Send ( byte buffer ) : int |
Sends data to a connected SecureSocket, starting at the indicated location in the data.
|
|
Send ( byte buffer, SocketFlags socketFlags ) : int |
Sends data to a connected SecureSocket, starting at the indicated location in the data.
|
|
Send ( byte buffer, int size, SocketFlags socketFlags ) : int |
Sends data to a connected SecureSocket, starting at the indicated location in the data.
|
|
Send ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int |
Sends data to a connected SecureSocket, starting at the indicated location in the data.
|
|
Shutdown ( SocketShutdown how ) : void |
Shuts down the secure connection.
|
Method | Description | |
---|---|---|
OnAccept ( IAsyncResult ar ) : void | ||
OnConnect ( IAsyncResult ar ) : void |
Called then the SecureSocket connects to the remote host.
|
|
OnShutdown ( IAsyncResult ar ) : void |
Called when the shutdown data has been sent to the remote server.
|
|
SecureSocket ( Socket accepted, Org.Mentalis.Security.Ssl.SecurityOptions options ) : System |
Initializes a new instance of the SecureSocket class.
|
public BeginAccept ( AsyncCallback callback, object state ) : IAsyncResult | ||
callback | AsyncCallback | The |
state | object | An object containing state information for this request. |
return | IAsyncResult |
public BeginConnect ( |
||
remoteEP | An |
|
callback | AsyncCallback | The |
state | object | An object that contains state information for this request. |
return | IAsyncResult |
public BeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult | ||
buffer | byte | The storage location for the received data. |
offset | int | The zero-based position in the buffer parameter at which to store the received data. |
size | int | The number of bytes to receive. |
socketFlags | SocketFlags | A bitwise combination of the |
callback | AsyncCallback | The |
state | object | An object containing state information for this request. |
return | IAsyncResult |
public BeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult | ||
buffer | byte | The data to send. |
offset | int | The zero-based position in the buffer parameter at which to begin sending data. |
size | int | The number of bytes to send. |
socketFlags | SocketFlags | A bitwise combination of the |
callback | AsyncCallback | The |
state | object | An object containing state information for this request. |
return | IAsyncResult |
public BeginShutdown ( AsyncCallback callback, object state ) : IAsyncResult | ||
callback | AsyncCallback | The |
state | object | An object containing state information for this request. |
return | IAsyncResult |
public ChangeSecurityProtocol ( Org.Mentalis.Security.Ssl.SecurityOptions options ) : void | ||
options | Org.Mentalis.Security.Ssl.SecurityOptions | The new |
return | void |
public Connect ( |
||
remoteEP | An |
|
return | void |
public EndAccept ( IAsyncResult asyncResult ) : |
||
asyncResult | IAsyncResult | Stores state information for this asynchronous operation as well as any user defined data. |
return |
public EndConnect ( IAsyncResult asyncResult ) : void | ||
asyncResult | IAsyncResult | The result of the asynchronous operation. |
return | void |
public EndReceive ( IAsyncResult asyncResult ) : int | ||
asyncResult | IAsyncResult | Stores state information for this asynchronous operation as well as any user defined data. |
return | int |
public EndSend ( IAsyncResult asyncResult ) : int | ||
asyncResult | IAsyncResult | The result of the asynchronous operation. |
return | int |
public EndShutdown ( IAsyncResult asyncResult ) : void | ||
asyncResult | IAsyncResult | An |
return | void |
public Poll ( int microSeconds, SelectMode mode ) : bool | ||
microSeconds | int | The time to wait for a response, in microseconds. |
mode | SelectMode | One of the |
return | bool |
public Receive ( byte buffer ) : int | ||
buffer | byte | The storage location for the received data. |
return | int |
public Receive ( byte buffer, SocketFlags socketFlags ) : int | ||
buffer | byte | The storage location for the received data. |
socketFlags | SocketFlags | A bitwise combination of the |
return | int |
public Receive ( byte buffer, int size, SocketFlags socketFlags ) : int | ||
buffer | byte | The storage location for the received data. |
size | int | The number of bytes to receive. |
socketFlags | SocketFlags | A bitwise combination of the |
return | int |
public Receive ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int | ||
buffer | byte | The storage location for the received data. |
offset | int | The location in buffer to store the received data. |
size | int | The number of bytes to receive. |
socketFlags | SocketFlags | A bitwise combination of the |
return | int |
public SecureSocket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : System | ||
addressFamily | AddressFamily | One of the |
socketType | SocketType | One of the |
protocolType | ProtocolType | One of the |
return | System |
public SecureSocket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, Org.Mentalis.Security.Ssl.SecurityOptions options ) : System | ||
addressFamily | AddressFamily | One of the |
socketType | SocketType | One of the |
protocolType | ProtocolType | One of the |
options | Org.Mentalis.Security.Ssl.SecurityOptions | The |
return | System |
public Send ( byte buffer, SocketFlags socketFlags ) : int | ||
buffer | byte | The data to be sent. |
socketFlags | SocketFlags | A bitwise combination of the |
return | int |
public Send ( byte buffer, int size, SocketFlags socketFlags ) : int | ||
buffer | byte | The data to be sent. |
size | int | The number of bytes to send. |
socketFlags | SocketFlags | A bitwise combination of the |
return | int |
public Send ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int | ||
buffer | byte | The data to be sent. |
offset | int | The position in the data buffer to begin sending data. |
size | int | The number of bytes to send. |
socketFlags | SocketFlags | A bitwise combination of the |
return | int |
public Shutdown ( SocketShutdown how ) : void | ||
how | SocketShutdown | |
return | void |