Embedded Segger embOS: getaddrinfo translation in gethostbyname

58 views Asked by At

I am working on a project with an embedded TCP/IP-socket implementation.

My problem is my overlaying SDK needs needs the function:

getaddrinfo( PCSTR pNodeName, PCSTR pServiceName, const ADDRINFOA *pHints, PADDRINFOA *ppResult );

but my underlying embedded "OS" is just providing the function:

struct* hostent gethostbyname(const char * sName);

Has someone an easy solution how to fake getaddrinfo() for the SDK, without the necessary to write it my self?

https://www.segger.com/downloads/emnet/UM07001 (page 273)

https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo

enter image description here

0

There are 0 answers