Protocol

Returns or sets the protocol, either TCP or UDP, used by the Winsock control.

Syntax

object.Protocol [=protocol]

Settings

The settings for protocol are described in the following table.

Value Description
0 Default. TCP protocol.
2 UDP protocol.

Return Value

Void.

Remarks

The control must be closed (using the Close method) before this property can be reset.