Does Indy support raw TCP sockets on Windows?

I am a C ++ programmer, but my question is about the Delphi Indy network socket library.

Essentially, since Microsoft crippled raw sockets with Windows Service Pack 1 (SP2) so that TCP data could not be sent over them, does this also apply to Indy? One of my friends recommended it to me and then used the WinSock API.

If not, is this the only way to use raw TCP sockets using the WinPCap API?

+3
source share
5 answers

If this is not the case, I know what synapse for Delphi does . The latest version now supports D2009 and is actively supported.

+3
source

As you can see from the other answers, there are many Delphi libraries to simplify network programming. However, AFAIK all of them provide a friendlier level over the WinSock API (on Windows, through the standard API socket on other OSs) and therefore cannot do anything that the WinSock API cannot do. In particular, they may or may not support access to the raw socket, but if the OS does not delete data on the socket, the libraries will also return errors.

Windows . MSDN, " Raw Sockets". ,

, Windows ( ) .

Delphi AFAIK. Windows.

WinPcap , , , , . Delphi, - Magenta Systems. , ++, ++, Delphi , . , , , Delphi, API libpcap.

+2

Indy . .

, :

  • TTCPClient
  • TCPServer
  • TClientSocket
  • TServerSocket

Delphi.

winpcap , , delphi. , , Google .

+1
source

you should check ICS components

ICS is a free Internet component library for all Delphi, C ++ Builder, BDS and RAD Studio versions (win32). It includes TCP, UDP, raw sockets, clients, servers, as well as many layer protocols such as FTP, SMTP, POP3, NNTP, HTTP, etc.

http://www.overbyte.be/

+1
source

I would prefer synapse more than Indy, so it's easier to simplify.

+1
source

Source: https://habr.com/ru/post/1721726/


All Articles