/[cvs]/eggdrop1.8/src/dcc.c
ViewVC logotype

Diff of /eggdrop1.8/src/dcc.c

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

revision 1.4 by pseudo, Tue Oct 19 12:13:33 2010 UTC revision 1.5 by pseudo, Wed Oct 20 13:07:13 2010 UTC
# Line 283  void failed_link(int idx) Line 283  void failed_link(int idx)
283    
284    /* Try next port */    /* Try next port */
285    killsock(dcc[idx].sock);    killsock(dcc[idx].sock);
   dcc[idx].port++;  
286    dcc[idx].timeval = now;    dcc[idx].timeval = now;
287    dcc[idx].sock = getsock(setsockname(&dcc[idx].sockname, dcc[idx].host,    if (open_telnet(idx, dcc[idx].host, dcc[idx].port + 1) < 0)
                                       dcc[idx].port, 1), SOCK_STRONGCONN);  
   if (dcc[idx].sock < 0 ||  
       open_telnet_raw(dcc[idx].sock, &dcc[idx].sockname) < 0)  
288      failed_link(idx);      failed_link(idx);
289  }  }
290    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23