/[anubis]/anubis/src/net.c
ViewVC logotype

Diff of /anubis/src/net.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by gray, Fri Nov 21 01:23:00 2003 UTC revision 1.11 by polak, Sat Nov 22 20:41:29 2003 UTC
# Line 58  _debug_printer(int method, int output, u Line 58  _debug_printer(int method, int output, u
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++) {
# Line 72  _debug_printer(int method, int output, u Line 72  _debug_printer(int method, int output, u
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;
# Line 153  connect_directly_to(char *host, unsigned Line 153  connect_directly_to(char *host, unsigned
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;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26