On a connected socket, this command turns encryption on or off.
On an unconnected socket, this forces encryption to be on or off on connection.
For an incoming connection, this means that the connection is rejected if the encryption cannot be turned on.
| C# | Visual Basic |
public const SocketOptionName Encrypt
Public Const Encrypt As SocketOptionName