From 9544985ccbb20d7f8377c63a4e59d1ff97b844ac Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 3 Feb 2014 10:05:00 -0800 Subject: Convert fd to Session* where meaningful --- src/char/char.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/char/char.hpp') diff --git a/src/char/char.hpp b/src/char/char.hpp index 27bdd36..cac060f 100644 --- a/src/char/char.hpp +++ b/src/char/char.hpp @@ -7,6 +7,8 @@ # include "../common/ip.hpp" # include "../common/mmo.hpp" +class Session; + constexpr int MAX_MAP_SERVERS = 30; struct mmo_map_server @@ -18,10 +20,12 @@ struct mmo_map_server }; const mmo_charstatus *search_character(CharName character_name); +const mmo_charstatus *search_character_id(int char_id); +Session *server_for(const mmo_charstatus *mcs); int mapif_sendall(const uint8_t *buf, unsigned int len); -int mapif_sendallwos(int fd, const uint8_t *buf, unsigned int len); -int mapif_send(int fd, const uint8_t *buf, unsigned int len); +int mapif_sendallwos(Session *s, const uint8_t *buf, unsigned int len); +int mapif_send(Session *s, const uint8_t *buf, unsigned int len); void char_log(XString line); -- cgit v1.2.3-60-g2f50