Problem using IdIcmpClient

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Re: Problem using IdIcmpClient

Postby mark_c » Thu Mar 10, 2016 12:05 am

sorry, I could not find the connection between SOCK_RAW, SO_LINGER and TIdIcmpClient; It means that I am using an indy version too old?

Unfortunately I'm observing that the documentation on the use of the socket is really poor.

thank you
mark_c
BCBJ Veteran
BCBJ Veteran
 
Posts: 86
Joined: Thu Jun 21, 2012 1:13 am

Re: Problem using IdIcmpClient

Postby rlebeau » Thu Mar 10, 2016 8:23 pm

mark_c wrote:sorry, I could not find the connection between SOCK_RAW, SO_LINGER and TIdIcmpClient


TIdIcmpClient uses a RAW socket, as opposed to a TCP or UDP socket, to implement the ICMP protocol.

SO_LINGER and SO_DONTLINGER are commonly used with TCP. I don't know if UDP or RAW support those options or not. Since they belong to the SOL_SOCKET level, they should apply to any type of socket. But your 10042 error suggests otherwise.

mark_c wrote:It means that I am using an indy version too old?


If you are using Indy 8, then yes. Indy is currently at 10. But that is not the cause of the slowness when closing the socket.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1457
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA

Previous

Return to Technical

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 12 guests

cron