| 141 |
|
|
| 142 |
int bbsnet_connect(int n) |
int bbsnet_connect(int n) |
| 143 |
{ |
{ |
| 144 |
int sock, ch, result, len, loop; |
int sock, result, len, loop; |
| 145 |
struct sockaddr_in sin; |
struct sockaddr_in sin; |
| 146 |
char buf[256]; |
char buf[256]; |
| 147 |
fd_set inputs, testfds; |
fd_set inputs, testfds; |
| 148 |
struct timeval timeout; |
struct timeval timeout; |
| 149 |
struct hostent *pHost = NULL; |
struct hostent *pHost = NULL; |
| 150 |
int rc, rv, tos = 020, i; |
int rv, tos = 020, i; |
| 151 |
char remote_addr[256]; |
char remote_addr[256]; |
| 152 |
int remote_port; |
int remote_port; |
| 153 |
time_t t_used; |
time_t t_used; |
| 356 |
int bbs_net() |
int bbs_net() |
| 357 |
{ |
{ |
| 358 |
int ch, pos, i; |
int ch, pos, i; |
|
char file_config[256]; |
|
| 359 |
|
|
| 360 |
strcpy(file_config, app_home_dir); |
load_bbsnet_conf(CONF_BBSNET); |
|
strcat(file_config, "conf/bbsnet.conf"); |
|
|
|
|
|
load_bbsnet_conf(file_config); |
|
| 361 |
|
|
| 362 |
BBS_last_access_tm = time(0); |
BBS_last_access_tm = time(0); |
| 363 |
|
|