version 1.11.2.2, 2012/05/14 15:17:26
|
version 1.12, 2012/05/14 16:14:13
|
Line 484 io_gethostbyname(const char *psHost, u_short port, io_
|
Line 484 io_gethostbyname(const char *psHost, u_short port, io_
|
|
|
if (!psHost || !addr) |
if (!psHost || !addr) |
return NULL; |
return NULL; |
|
else |
|
memset(addr, 0, sizeof(io_sockaddr_t)); |
|
|
if (*psHost != '/') { |
if (*psHost != '/') { |
/* resolver */ |
/* resolver */ |
Line 499 io_gethostbyname(const char *psHost, u_short port, io_
|
Line 501 io_gethostbyname(const char *psHost, u_short port, io_
|
} else |
} else |
addr->sa.sa_family = AF_LOCAL; |
addr->sa.sa_family = AF_LOCAL; |
|
|
memset(addr, 0, sizeof(io_sockaddr_t)); |
|
switch (addr->sa.sa_family) { |
switch (addr->sa.sa_family) { |
case AF_INET: |
case AF_INET: |
addr->sin.sin_len = sizeof(struct sockaddr_in); |
addr->sin.sin_len = sizeof(struct sockaddr_in); |