Differences From Artifact [32d271bf6a]:
- File
src/resolver.m
— part of check-in
[62e2de30b9]
at
2015-02-16 08:39:17
on branch trunk
— Explicitly pass errno to exceptions
The old behaviour where the exception would access errno directly on
creation of the exception was very fragile. The two main problems with
it were that sometimes it would pick up an errno even though none had
been set and in other cases that when the exception was created errno
had already been overridden.This also greatly increases errno handling on Win32, especially in
conjunction with sockets. It can still be improved further, though. (user: js, size: 8618) [annotate] [blame] [check-ins using]
To Artifact [995660e003]:
- File src/resolver.m — part of check-in [cd62cbdac5] at 2015-10-01 20:45:02 on branch trunk — Minor cosmetic changes (user: js, size: 8617) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
135 136 137 138 139 140 141 | # endif in_addr_t s_addr; struct hostent *he; char **ip; struct sockaddr_in *addrs, *addrsIter; /* | | | | | 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | # endif in_addr_t s_addr; struct hostent *he; char **ip; struct sockaddr_in *addrs, *addrsIter; /* * If the host is an IP address, don't try resolving it. On the * Wii for example, the resolver will return an error if you * specify an IP address. */ if ((s_addr = inet_addr([host UTF8String])) != INADDR_NONE) { of_resolver_result_t *tmp; struct sockaddr_in *addr; if ((ret = calloc(2, sizeof(*ret))) == NULL) @throw [OFOutOfMemoryException |
︙ | ︙ |