enum io.Protocol
Overview
This enumeration contains all possible values for network protocols that can be used with sockets. More…
enum Protocol { Icmp = 1, Tcp = 6, Udp = 17, Raw = 255, };
Detailed Documentation
This enumeration contains all possible values for network protocols that can be used with sockets.
When opening a socket using io.Socket.open
method you have to specify the
protocol to use(all overloads of io.Socket.open
methods require a
protocol
argument).
See also:
Enum Values
Icmp
ICMP
protocol; maps to IPPROTO_ICMP
platform constant.
Tcp
TCP
protocol; maps to IPPROTO_TCP
platform constant.
Udp
UDP
protocol; maps to IPPROTO_UDP
platform constant.
Raw
Raw IP
protocol; maps to IPPROTO_RAW
platform constant.