version 1.426, 2013/10/10 12:13:29 |
version 1.427, 2013/10/10 12:13:56 |
|
|
* Maximum sizes of strings in message data. Don't forget to bump |
* Maximum sizes of strings in message data. Don't forget to bump |
* PROTOCOL_VERSION if any of these change! |
* PROTOCOL_VERSION if any of these change! |
*/ |
*/ |
#define COMMAND_LENGTH 2048 /* packed argv size */ |
|
#define TERMINAL_LENGTH 128 /* length of TERM environment variable */ |
#define TERMINAL_LENGTH 128 /* length of TERM environment variable */ |
#define ENVIRON_LENGTH 1024 /* environment variable length */ |
#define ENVIRON_LENGTH 1024 /* environment variable length */ |
|
|
|
|
* Don't forget to bump PROTOCOL_VERSION if any of these change! |
* Don't forget to bump PROTOCOL_VERSION if any of these change! |
*/ |
*/ |
struct msg_command_data { |
struct msg_command_data { |
pid_t pid; /* from $TMUX or -1 */ |
pid_t pid; /* from $TMUX or -1 */ |
int session_id; /* from $TMUX or -1 */ |
int session_id; /* from $TMUX or -1 */ |
|
|
int argc; |
int argc; |
char argv[COMMAND_LENGTH]; |
}; /* followed by packed argv */ |
}; |
|
|
|
struct msg_identify_data { |
struct msg_identify_data { |
char cwd[MAXPATHLEN]; |
char cwd[MAXPATHLEN]; |
|
|
char term[TERMINAL_LENGTH]; |
char term[TERMINAL_LENGTH]; |
|
|
int flags; |
int flags; |
|
|
#define CLIENT_EXIT 0x4 |
#define CLIENT_EXIT 0x4 |
#define CLIENT_REDRAW 0x8 |
#define CLIENT_REDRAW 0x8 |
#define CLIENT_STATUS 0x10 |
#define CLIENT_STATUS 0x10 |
#define CLIENT_REPEAT 0x20 /* allow command to repeat within repeat time */ |
#define CLIENT_REPEAT 0x20 |
#define CLIENT_SUSPENDED 0x40 |
#define CLIENT_SUSPENDED 0x40 |
#define CLIENT_BAD 0x80 |
#define CLIENT_BAD 0x80 |
#define CLIENT_IDENTIFY 0x100 |
#define CLIENT_IDENTIFY 0x100 |
|
|
/* server-fn.c */ |
/* server-fn.c */ |
void server_fill_environ(struct session *, struct environ *); |
void server_fill_environ(struct session *, struct environ *); |
void server_write_ready(struct client *); |
void server_write_ready(struct client *); |
int server_write_client( |
int server_write_client(struct client *, enum msgtype, const void *, |
struct client *, enum msgtype, const void *, size_t); |
size_t); |
void server_write_session( |
void server_write_session(struct session *, enum msgtype, const void *, |
struct session *, enum msgtype, const void *, size_t); |
size_t); |
void server_redraw_client(struct client *); |
void server_redraw_client(struct client *); |
void server_status_client(struct client *); |
void server_status_client(struct client *); |
void server_redraw_session(struct session *); |
void server_redraw_session(struct session *); |