Exemple #1
0
 internal unsafe SRVReply(ares_srv_reply *reply)
 {
     Weight = reply->weight;
     Priority = reply->priority;
     Port = reply->port;
     Host = new string(reply->host);
 }
Exemple #2
0
 static unsafe int length(ares_srv_reply *reply)
 {
     int n = 0;
     for (var i = reply; i != null; i = i->next) {
         n++;
     }
     return n;
 }
Exemple #3
0
 static unsafe void free(ares_srv_reply *reply)
 {
     if (reply == null) {
         return;
     }
     free(reply->next);
     CAresChannel.ares_free_data((IntPtr)reply);
 }