a := SOCK_STREAM;\r
dgram := false;\r
end else if (uppercase(proto) = 'ICMP') or (strtointdef(proto,256) < 256) then begin\r
- //note: ICMP support doesn't seem to work yet\r
b := strtointdef(proto,IPPROTO_ICMP);\r
a := SOCK_RAW;\r
dgram := true;\r
currentip := 0;\r
if not assigned(connecttimeout) then begin\r
connecttimeout := tltimer.create(self);\r
- connecttimeout.Tag := integer(self);\r
connecttimeout.ontimer := connecttimeouthandler;\r
connecttimeout.interval := 2500;\r
connecttimeout.enabled := false;\r