version 1.100, 2009/09/07 18:50:45 |
version 1.101, 2009/09/07 21:01:50 |
|
|
SLIST_HEAD(, session_alert) alerts; |
SLIST_HEAD(, session_alert) alerts; |
|
|
#define SESSION_UNATTACHED 0x1 /* not attached to any clients */ |
#define SESSION_UNATTACHED 0x1 /* not attached to any clients */ |
|
#define SESSION_DEAD 0x2 |
int flags; |
int flags; |
|
|
struct termios tio; |
struct termios tio; |
|
|
struct environ environ; |
struct environ environ; |
|
|
|
int references; |
}; |
}; |
ARRAY_DECL(sessions, struct session *); |
ARRAY_DECL(sessions, struct session *); |
|
|
|
|
#define CLIENT_SUSPENDED 0x40 |
#define CLIENT_SUSPENDED 0x40 |
#define CLIENT_BAD 0x80 |
#define CLIENT_BAD 0x80 |
#define CLIENT_IDENTIFY 0x100 |
#define CLIENT_IDENTIFY 0x100 |
|
#define CLIENT_DEAD 0x200 |
int flags; |
int flags; |
|
|
struct timeval identify_timer; |
struct timeval identify_timer; |
|
|
struct mode_key_data prompt_mdata; |
struct mode_key_data prompt_mdata; |
|
|
struct session *session; |
struct session *session; |
|
|
|
int references; |
}; |
}; |
ARRAY_DECL(clients, struct client *); |
ARRAY_DECL(clients, struct client *); |
|
|
|
|
|
|
/* server.c */ |
/* server.c */ |
extern struct clients clients; |
extern struct clients clients; |
|
extern struct clients dead_clients; |
int server_client_index(struct client *); |
int server_client_index(struct client *); |
int server_start(char *); |
int server_start(char *); |
|
|
|
|
|
|
/* session.c */ |
/* session.c */ |
extern struct sessions sessions; |
extern struct sessions sessions; |
|
extern struct sessions dead_sessions; |
void session_alert_add(struct session *, struct window *, int); |
void session_alert_add(struct session *, struct window *, int); |
void session_alert_cancel(struct session *, struct winlink *); |
void session_alert_cancel(struct session *, struct winlink *); |
int session_alert_has(struct session *, struct winlink *, int); |
int session_alert_has(struct session *, struct winlink *, int); |