[Error value] EAI_BADFLAGS [WSA equivalent] WSAEINVAL [Description] 
One or more invalid parameters was passed to the getnameinfo function. This error is returned if a host name was requested but the hostlen parameter was zero or if a service name was requested, but the servlen parameter was zero.