aboutsummaryrefslogtreecommitdiff
path: root/server_network.h
diff options
context:
space:
mode:
Diffstat (limited to 'server_network.h')
-rw-r--r--server_network.h8
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;