diff options
author | Test_User <hax@andrewyu.org> | 2024-06-10 16:39:39 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-06-10 16:39:39 -0400 |
commit | 5534441086cee3130c95460e22ed29bff44cbaef (patch) | |
tree | 17ae3e76f55f20995928e2dbe845bc10f063f59e /server_network.h | |
parent | e143859cc9c9bfa7994a37e5cc38b203a05c793e (diff) | |
download | haxircd-5534441086cee3130c95460e22ed29bff44cbaef.tar.gz haxircd-5534441086cee3130c95460e22ed29bff44cbaef.zip |
More complete server tracking and communication ready
Diffstat (limited to 'server_network.h')
-rw-r--r-- | server_network.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server_network.h b/server_network.h index 7c28cb2..ac4a23e 100644 --- a/server_network.h +++ b/server_network.h @@ -47,6 +47,8 @@ struct server_connection_info { struct server_info { struct string sid; + struct string name; + struct string fullname; struct string next; // Self for self, else which server we should send a message to to get to this server @@ -54,6 +56,8 @@ struct server_info { struct table user_list; + void *handle; + size_t protocol; size_t net; @@ -68,11 +72,11 @@ void * server_accept_thread(void *type); void * handle_server_thread(void *type); -int add_server(struct string attached_to, struct string sid, struct string name, struct string fullname, size_t protocol, size_t net); +int add_server(struct string from, struct string attached_to, struct string sid, struct string name, struct string fullname, size_t protocol, size_t net, void *handle); void free_server(struct server_info *server); void update_all_propagations(void); -void unlink_server(struct server_info *a, struct server_info *b, size_t protocol); +void unlink_server(struct string from, struct server_info *a, struct server_info *b, size_t protocol); extern struct table server_config; |