diff options
author | Test_User <hax@andrewyu.org> | 2023-08-07 19:43:57 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2023-08-07 19:43:57 -0400 |
commit | a25d22a1c26203b7c9e2dcd33f4c602b0f82684d (patch) | |
tree | 0ce7ba3ab39ae16e730076d1e66bdeb4a41099a7 /network.h | |
parent | 4f6fdc6d4faba1c268b8714be26f683de6884c77 (diff) | |
download | c_coupserv-a25d22a1c26203b7c9e2dcd33f4c602b0f82684d.tar.gz c_coupserv-a25d22a1c26203b7c9e2dcd33f4c602b0f82684d.zip |
A bunch of stuff, mostly related to client support
Diffstat (limited to 'network.h')
-rw-r--r-- | network.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -41,6 +41,9 @@ struct remote_server { struct string address; struct string name; struct string via; // netsplit purposes + + // TODO: this v + struct table user_list; // TODO: metadata }; @@ -57,11 +60,24 @@ struct user_info { struct string realname; struct string opertype; + // TODO: this v + struct table channel_list; + + struct table metadata; +}; + +struct channel_info { + uint64_t ts; + + struct table modes; // TODO: Parse modes properly + struct table user_list; // points to corresponding user_info struct (if available, currently not) + struct table metadata; }; extern struct table server_network_commands; extern struct table client_network_commands; +extern struct table channel_list; extern struct table server_list; extern struct table user_list; @@ -78,3 +94,5 @@ extern int initservernetwork(void); extern int initclientnetwork(void); #define SENDCLIENT(x) write(client_fd, x.data, x.len) + +extern int PRIVMSG(struct string source, struct string target, struct string message); |