| 16 |
|
|
| 17 |
#include "bbs.h" |
#include "bbs.h" |
| 18 |
#include "common.h" |
#include "common.h" |
|
#include "log.h" |
|
| 19 |
#include "io.h" |
#include "io.h" |
| 20 |
#include "screen.h" |
#include "log.h" |
|
#include "menu.h" |
|
| 21 |
#include "login.h" |
#include "login.h" |
| 22 |
#include <stdio.h> |
#include "menu.h" |
| 23 |
#include <stdarg.h> |
#include "screen.h" |
| 24 |
#include <errno.h> |
#include <errno.h> |
|
#include <string.h> |
|
|
#include <stdlib.h> |
|
| 25 |
#include <fcntl.h> |
#include <fcntl.h> |
| 26 |
|
#include <netdb.h> |
| 27 |
|
#include <stdarg.h> |
| 28 |
|
#include <stdio.h> |
| 29 |
|
#include <stdlib.h> |
| 30 |
|
#include <string.h> |
| 31 |
#include <time.h> |
#include <time.h> |
| 32 |
#include <unistd.h> |
#include <unistd.h> |
|
#include <netdb.h> |
|
|
#include <sys/select.h> |
|
|
#include <sys/ioctl.h> |
|
|
#include <sys/socket.h> |
|
|
#include <sys/epoll.h> |
|
|
#include <netinet/in.h> |
|
|
#include <netinet/ip.h> |
|
| 33 |
#include <arpa/inet.h> |
#include <arpa/inet.h> |
| 34 |
#include <libssh/libssh.h> |
#include <libssh/libssh.h> |
| 35 |
#include <libssh/server.h> |
#include <libssh/server.h> |
| 36 |
#include <libssh/callbacks.h> |
#include <libssh/callbacks.h> |
| 37 |
|
#include <netinet/in.h> |
| 38 |
|
#include <netinet/ip.h> |
| 39 |
|
#include <sys/select.h> |
| 40 |
|
#include <sys/ioctl.h> |
| 41 |
|
#include <sys/socket.h> |
| 42 |
|
#include <sys/epoll.h> |
| 43 |
|
|
| 44 |
#define MENU_CONF_DELIM " \t\r\n" |
#define MENU_CONF_DELIM " \t\r\n" |
| 45 |
|
|
| 213 |
int tos; |
int tos; |
| 214 |
char remote_addr[IP_ADDR_LEN]; |
char remote_addr[IP_ADDR_LEN]; |
| 215 |
int remote_port; |
int remote_port; |
| 216 |
time_t t_used; |
time_t t_used = time(NULL); |
| 217 |
struct tm *tm_used; |
struct tm *tm_used; |
| 218 |
int ch; |
int ch; |
| 219 |
|
|
| 496 |
} |
} |
| 497 |
else if (ret == 0) // broken pipe |
else if (ret == 0) // broken pipe |
| 498 |
{ |
{ |
| 499 |
log_common("read(STDIN) EOF\n"); |
#ifdef _DEBUG |
| 500 |
|
log_error("read(STDIN) EOF\n"); |
| 501 |
|
#endif |
| 502 |
stdin_read_wait = 0; |
stdin_read_wait = 0; |
| 503 |
loop = 0; |
loop = 0; |
| 504 |
break; |
break; |
| 538 |
} |
} |
| 539 |
else if (ret == 0) // broken pipe |
else if (ret == 0) // broken pipe |
| 540 |
{ |
{ |
| 541 |
log_common("write(socket) EOF\n"); |
#ifdef _DEBUG |
| 542 |
|
log_error("write(socket) EOF\n"); |
| 543 |
|
#endif |
| 544 |
sock_write_wait = 0; |
sock_write_wait = 0; |
| 545 |
loop = 0; |
loop = 0; |
| 546 |
break; |
break; |