-
Notifications
You must be signed in to change notification settings - Fork 21
/
comm.h
47 lines (39 loc) · 1.52 KB
/
comm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define MAX_WRITE_SOCKET_SIZE 8192
#include "config.h"
struct interactive {
void *tp;
struct object *ob; /* Points to the associated object */
struct sentence *input_to; /* To be called with next input line ! */
struct sockaddr_storage addr;
char *host_name;
socklen_t addrlen;
char *prompt;
int closing; /* True when closing this socket. */
int do_close; /* This is to be closed down. */
struct interactive *snoop_on, *snoop_by;
int noecho; /* Don't echo lines */
int last_time; /* Time of last command executed */
char *default_err_message; /* This or What ? is printed when error */
int trace_level; /* Debug flags. 0 means no debugging */
char *trace_prefix; /* Trace only object which has this as name prefix */
struct ed_buffer *ed_buffer; /* Local ed */
char *rname;
int lport;
int rport;
#ifdef SUPER_SNOOP
int snoop_fd;
#endif
#ifdef WORD_WRAP
unsigned screen_width; /* If 0, no wordwrap */
unsigned current_column; /* Where the cursor should be */
#endif
};
void remove_interactive(struct interactive *, int);
void interactive_input(struct interactive *, char *);
void gmcp_input(struct interactive *, char *);
void *new_player(void *, struct sockaddr_storage *, socklen_t, u_short);
void mssp_request(struct interactive *ip);
void set_ip_number(struct object *ob, char *ip);