58 |
debug_cache.output = output; |
debug_cache.output = output; |
59 |
debug_cache.newline = 0; |
debug_cache.newline = 0; |
60 |
debug_cache.count = 0; |
debug_cache.count = 0; |
61 |
fprintf(stderr, "%s %s ", mode, output ? ">>>" : "<<<"); |
fprintf(stderr, "%s %s ", mode, output ? "<<<" : ">>>"); |
62 |
} |
} |
63 |
|
|
64 |
for (i = 0; i < nleft; i++, ptr++) { |
for (i = 0; i < nleft; i++, ptr++) { |
72 |
debug_cache.count = 0; |
debug_cache.count = 0; |
73 |
if (i != nleft-1) { |
if (i != nleft-1) { |
74 |
fprintf(stderr, "%s %s ", |
fprintf(stderr, "%s %s ", |
75 |
mode, output ? ">>>" : "<<<"); |
mode, output ? "<<<" : ">>>"); |
76 |
debug_cache.newline = 0; |
debug_cache.newline = 0; |
77 |
} else |
} else |
78 |
debug_cache.newline = 1; |
debug_cache.newline = 1; |
153 |
Create socket, and connect. |
Create socket, and connect. |
154 |
*/ |
*/ |
155 |
|
|
|
info(DEBUG, _("Initializing socket...")); |
|
156 |
if ((sd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { |
if ((sd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { |
157 |
anubis_error(HARD, _("Can't create stream socket.")); |
anubis_error(HARD, _("Can't create stream socket.")); |
158 |
return -1; |
return -1; |