3

I'm trying to find Delphi wrappers for getnameinfo and getaddrinfo socket APIs. Does anybody know where to find them or has created them and would not mind to share?

gabr
  • 26,580
  • 9
  • 75
  • 141

2 Answers2

4

They are part of Indy 10: declared in IdWship6 unit, they are already used by TIdStackWindows in IdStackWindows unit.

gabr
  • 26,580
  • 9
  • 75
  • 141
Ondrej Kelle
  • 36,941
  • 2
  • 65
  • 128
  • I've ended using JWA version (see my answer) because I'm not using Indy, but your answer was indispensable as it provided me with an example on how to use those two functions correctly. – gabr Jul 19 '11 at 11:57
  • 1
    You might take a look at Synapse's declaration [here](http://synalist.svn.sourceforge.net/viewvc/synalist/trunk/sswin32.inc?revision=146&content-type=text%2Fplain). –  Aug 06 '11 at 18:37
3

They are included in JEDI Windows API, unit JwaWS2tcpip.

gabr
  • 26,580
  • 9
  • 75
  • 141