#include #include #include #include #include #include #include int MakeSocketAddr( struct sockaddr *sockaddrPtr, /* socket address */ char *hostname, /* name or ip of host. NULL implies INADDR_ANY */ int port, /* port number */ char dotted_ip[16]); /* resolved ip addr */ /* Workaround for cases, where the local cache is not updated (yet) often, gethostbyname gets a cached value, but dig will get a fresh one note after an internet research: dig is recommended over nslookup */ /* compatibility for network.c */ int CreateSocketAdress(struct sockaddr_in *sockaddrPtr, /* Socket address */ char *host, /* Host. NULL implies INADDR_ANY */ int port);