Protocol

This property returns and sets the protocol, either TCP or IrDA, used by the Winsock control.

Syntax

object.Protocol [= protocol]

Parameters

object
Object expression that evaluates to a Winsock control.
protocol
The protocol to be used.

The following table shows the settings for protocol.
Constant
Value
Description
sckTCPProtocol 0 Default. TCP protocol.
sckIRDAProtocol 2 IrDA protocol.

Remarks

Use the Close method to close the Winsock control before you reset the Protocol property.