Page 2 of 2

Re: Problem using IdIcmpClient

PostPosted: Thu Mar 10, 2016 12:05 am
by mark_c
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

Re: Problem using IdIcmpClient

PostPosted: Thu Mar 10, 2016 8:23 pm
by rlebeau
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.