Swift static sdk with async networking

Ok, I'm not sure how to do this. I recall there's the C function gethostbyname(). Would it be ok just make the function that will call gethostbyname async?

The project with the original program is here (main)