version 1.1.2.3, 2013/08/12 23:25:35
|
version 1.1.2.4, 2013/08/13 00:02:59
|
Line 80 ioInitSocket(int role, int type, int proto, const char
|
Line 80 ioInitSocket(int role, int type, int proto, const char
|
io_SetErr(elwix_GetErrno(), "%s", elwix_GetError()); |
io_SetErr(elwix_GetErrno(), "%s", elwix_GetError()); |
e_free(s); |
e_free(s); |
return NULL; |
return NULL; |
} else | } else { |
AIT_SET_BUFSIZ(&s->sock_buf, 0, buflen ? buflen : BUFSIZ); | buflen = buflen ? buflen : BUFSIZ; |
| AIT_SET_BUFSIZ(&s->sock_buf, 0, buflen); |
| } |
|
|
s->sock_fd = socket(s->sock_addr.sa.sa_family, s->sock_type, s->sock_proto); |
s->sock_fd = socket(s->sock_addr.sa.sa_family, s->sock_type, s->sock_proto); |
if (s->sock_fd == -1) { |
if (s->sock_fd == -1) { |