/[LeafOK_CVS]/lbbs/src/bbs_net.c
ViewVC logotype

Diff of /lbbs/src/bbs_net.c

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

Revision 1.2 by sysadm, Mon Mar 21 17:10:51 2005 UTC Revision 1.3 by sysadm, Mon Mar 21 17:28:01 2005 UTC
# Line 92  load_bbsnet_conf (const char *file_confi Line 92  load_bbsnet_conf (const char *file_confi
92          (item_count < MAXSTATION / 2 ? 'A' + item_count : 'a' + item_count);          (item_count < MAXSTATION / 2 ? 'A' + item_count : 'a' + item_count);
93        p_menuitem->name[1] = '\0';        p_menuitem->name[1] = '\0';
94        sprintf (p_menuitem->text, "1;36m%c. %s",        sprintf (p_menuitem->text, "1;36m%c. %s",
95                 p_menuitem->name[0], bbsnet_conf[item_count].host2);                 p_menuitem->name[0], bbsnet_conf[item_count].host1);
96    
97        item_count++;        item_count++;
98      }      }
# Line 298  bbsnet_connect (int n) Line 298  bbsnet_connect (int n)
298    setsockopt (sock, IPPROTO_IP, IP_TOS, &tos, sizeof (int));    setsockopt (sock, IPPROTO_IP, IP_TOS, &tos, sizeof (int));
299    prints ("\033[1;31m连接成功!\033[m\n");    prints ("\033[1;31m连接成功!\033[m\n");
300    
 /*  
   if (connect (sock, (struct sockaddr *) &sin, sizeof (struct sockaddr)) < 0)  
     {  
       log_error ("Socket connect failed\n");  
       return -3;  
     }  
 */  
   
301    FD_ZERO (&inputs);    FD_ZERO (&inputs);
302    FD_SET (0, &inputs);    FD_SET (0, &inputs);
303    FD_SET (sock, &inputs);    FD_SET (sock, &inputs);
# Line 403  bbsnet_selchange (int new_pos) Line 395  bbsnet_selchange (int new_pos)
395    moveto (20, 0);    moveto (20, 0);
396    clrtoeol ();    clrtoeol ();
397    prints ("║\x1b[1m单位:\x1b[1;33m%-18s\x1b[m  站名:\x1b[1;33m%s\x1b[m",    prints ("║\x1b[1m单位:\x1b[1;33m%-18s\x1b[m  站名:\x1b[1;33m%s\x1b[m",
398            bbsnet_conf[new_pos].host1, bbsnet_conf[new_pos].host2);            bbsnet_conf[new_pos].host2, bbsnet_conf[new_pos].host1);
399    moveto (20, 79);    moveto (20, 79);
400    prints ("║");    prints ("║");
401    moveto (21, 0);    moveto (21, 0);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1