Protocol
This property can get or set the protocol used to either TCP or UDP.
Syntax: nValue = oSocket.Protocol
Alternate: oSocket.Protocol = enValue
enValue (enWinsockProtocols) the numeric value representing TCP or UDP. TCP = 0, UDP = 1. There are built in constants to represent these value as well. They are sckTCPProtocol and sckUDPProtocol.
nValue (Long) the numeric value representing TCP or UDP. TCP = 0, UDP = 1.
Group: Socket Object
Example:
Dim WithEvents oSocket As Socket ' module level Dim
Dim wProtocols As enWinsockProtocols
Set oSocket = New Socket
oSocket.Protocol = sckTCPProtocol
wProtocols = oSocket.Protocol