This property returns and sets the protocol, either TCP or IrDA, used by the Winsock control.
object.Protocol [= protocol]
The following table shows the settings for protocol.
Constant |
Value |
Description |
sckTCPProtocol | 0 | Default. TCP protocol. |
sckIRDAProtocol | 2 | IrDA protocol. |
Use the Close method to close the Winsock control before you reset the Protocol property.