Mentalis.org Security Library documentation

VirtualSocket.IOControl Method 

Sets low-level operating modes for the VirtualSocket.

[Visual Basic]
Overridable Public Function IOControl( _
   ByVal ioControlCode As Integer, _
   ByVal optionInValue As Byte(), _
   ByVal optionOutValue As Byte() _
) As Integer
[C#]
public virtual int IOControl(
   int ioControlCode,
   byte[] optionInValue,
   byte[] optionOutValue
);

Parameters

ioControlCode
The control code of the operation to perform.
optionInValue
The input data required by the operation.
optionOutValue
The output data returned by the operation.

Return Value

The number of bytes in optionOutValue parameter.

Remarks

The IOControl method provides low-level access to the operating system socket underlying the current instance of the VirtualSocket class. For more information about IOControl, see the WSAIoct documentation in MSDN.

Exceptions

Exception TypeCondition
SocketExceptionAn operating system error occurs while accessing the VirtualSocket.
ObjectDisposedExceptionThe VirtualSocket has been closed.

See Also

VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace