| 33 |
#include <sys/socket.h> |
#include <sys/socket.h> |
| 34 |
#include <sys/epoll.h> |
#include <sys/epoll.h> |
| 35 |
|
|
| 36 |
#define MENU_CONF_DELIM " \t\r\n" |
static const char MENU_CONF_DELIM[] = " \t\r\n"; |
| 37 |
|
|
| 38 |
#define MAX_PROCESS_BAR_LEN 30 |
enum _bbs_net_constant_t |
| 39 |
#define MAXSTATION 26 * 2 |
{ |
| 40 |
#define STATION_PER_LINE 4 |
MAX_PROCESS_BAR_LEN = 30, |
| 41 |
|
MAXSTATION = 26 * 2, |
| 42 |
|
STATION_PER_LINE = 4, |
| 43 |
|
}; |
| 44 |
|
|
| 45 |
struct _bbsnet_conf |
struct _bbsnet_conf |
| 46 |
{ |
{ |
| 48 |
char host2[40]; |
char host2[40]; |
| 49 |
char ip[40]; |
char ip[40]; |
| 50 |
in_port_t port; |
in_port_t port; |
| 51 |
char charset[20]; |
char charset[CHARSET_MAX_LEN + 1]; |
| 52 |
} bbsnet_conf[MAXSTATION]; |
} bbsnet_conf[MAXSTATION]; |
| 53 |
|
|
| 54 |
static MENU_SET bbsnet_menu; |
static MENU_SET bbsnet_menu; |