Returns or sets the protocol, either TCP or UDP, used by the Winsock control.
object.Protocol [=protocol]
The settings for protocol are described in the following table.
Value | Description |
---|---|
0 | Default. TCP protocol. |
2 | UDP protocol. |
Void.
The control must be closed (using the Close method) before this property can be reset.