TBlockSocket.GetSocketProtocol
TBlockSocket
function GetSocketProtocol: Integer; virtual;
Unit
blcksock
Description
Return value of protocol type for socket creation.
For TCP return IPPROTO_TCP
For UDP return IPPROTO_UDP
For ICMP return IPPROTO_ICMP or IPPROTO_ICMPV6
For RAW return IPPROTO_RAW
See also:
CreateSocket, CreateSocketByName