Closed HiGarfield closed 2 years ago
simplify implementation and support hostname as address
Note: do not use static linking in compilation after this commit, since getaddrinfo() causes problems with static linking. Ref: [1] https://stackoverflow.com/questions/2725255/create-statically-linked-binary-that-uses-getaddrinfo [2] https://www.linuxquestions.org/questions/programming-9/glibc-warning-concerning-use-of-getaddrinfo-in-static-library-734169
simplify implementation and support hostname as address
Note: do not use static linking in compilation after this commit, since getaddrinfo() causes problems with static linking. Ref: [1] https://stackoverflow.com/questions/2725255/create-statically-linked-binary-that-uses-getaddrinfo [2] https://www.linuxquestions.org/questions/programming-9/glibc-warning-concerning-use-of-getaddrinfo-in-static-library-734169