I want to get away from the Indy components using sockets. I study a lot of information, and in this regard, I had a question - which version of the socket is better to use in my case?
I need to send commands like "\ xff \ xff \ xff \ xff getstatus" to the server via UDP protocol, and receive the buffer, and receive so that a packet with a string inside is received, and nothing is added to this string (as it was with the Indy-component. There was a big buffer set, and the timer was the first time it was received, then garbage was added to the incoming line, it seems, to buffer the buffer. Of course, such a line could not be correctly parsed later).

    1 answer 1

    Although in principle I will need to implement and ping, and Raw-sockets with ICMP are available only in winsock2. I will use it. The question is closed.