|
Gets and sets the protocol that should be used to create the
socket.
Syntax
object.Protocol [= protocol ]
Remarks
The Protocol property specifies the type of socket that is
to be created. This property may only be set before a socket has been
created, or after it has been closed. Supported socket protocols
are:
Value |
Description |
swProtocolTcp |
Specifies the User Datagram Protocol. This is a stateless,
peer-to-peer message oriented protocol, with the data sent in
discrete packets. UDP is a simpler network protocol that does not
have the inherent reliability of TCP, but it has less overhead
and is ideal for real-time applications where a dropped packet is
preferable to the delay of waiting for a packet to be
retransmitted. It also supports the broadcasting of datagrams
over local networks, and is commonly used by services that must
exchange a relatively small amount of data with a large number of
clients. |
swProtocolUdp |
Specifies the User Datagram Protocol. This is a stateless,
peer-to-peer message oriented protocol, with the data sent in
discrete packets. UDP is a simpler network protocol that does not
have the inherent reliability of TCP, but it has less overhead
and is ideal for real-time applications where a dropped packet is
preferable to the delay of waiting for a packet to be
retransmitted. It also supports the broadcasting of datagrams
over local networks, and is commonly used by services that must
exchange a relatively small amount of data with a large number of
clients. |
swProtocolRaw |
Raw sockets. This socket type is for special purpose
applications which need access to the IP datagram. It is not
supported on all platforms and should only be used if
required. |
The default value for this property is swProtocolTcp.
Data Type
Integer (Int32)
See Also
Bind Method,
Connect Method
|
|