STPingTest icon indicating copy to clipboard operation
STPingTest copied to clipboard

Demo to test ping

Results 1 STPingTest issues
Sort by recently updated
recently updated
newest added

在hostResolutionDone方法中给一个char分配地址后, 没有释放此段内存空间, 需要在合适的时机调用free. 目前我是这样修改的. { case AF_INET: { struct sockaddr_in *addr_in = (struct sockaddr_in *)addrPtr; s = malloc(INET_ADDRSTRLEN); inet_ntop(AF_INET, &(addr_in->sin_addr), s, INET_ADDRSTRLEN); self.IPAddress = [NSString stringWithFormat:@"%s", s]; free(s); // 释放malloc空间...