Debian Codegraph @

include/sockproto.h

raw symbols SCIP
1 /* image.c */
2 int is_valid_faceset(int fsn);
3 void set_face_mode_cmd(char *buf, int len, socket_struct *ns);
4 void send_face_cmd(char *buff, int len, socket_struct *ns);
5 void esrv_send_face(socket_struct *ns, const Face *face, int nocache);
6 void send_image_info(socket_struct *ns);
7 void send_image_sums(socket_struct *ns, char *params);
8 /* info.c */
9 void print_ext_msg(socket_struct *ns, int color, uint8_t type, uint8_t subtype, const char *message);
10 void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message);
11 void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format, ...);
12 void ext_info_map(int color, const mapstruct *map, uint8_t type, uint8_t subtype, const char *str1);
13 void ext_info_map_except(int color, const mapstruct *map, const object *op, uint8_t type, uint8_t subtype, const char *str1);
14 void ext_info_map_except2(int color, const mapstruct *map, const object *op1, const object *op2, int type, int subtype, const char *str1);
15 void rangetostring(const object *pl, char *obuf, size_t len);
16 void set_title(const object *pl, char *buf, size_t len);
17 void magic_mapping_mark(object *pl, char *map_mark, int strength);
18 void draw_magic_map(object *pl);
19 /* init.c */
20 void init_connection(socket_struct *ns, const char *from_ip);
21 void init_listening_socket(socket_struct *ns);
22 void init_server(void);
23 void free_all_newserver(void);
24 void free_newsocket(socket_struct *ns);
25 void final_free_player(player *pl);
26 /* item.c */
27 void esrv_draw_look(object *pl);
28 void esrv_send_inventory(object *pl, object *op);
29 void esrv_update_item(int flags, object *pl, object *op);
30 void esrv_send_item(object *pl, object *op);
31 void esrv_del_item(player *pl, object *ob);
32 void examine_cmd(char *buf, int len, player *pl);
33 void apply_cmd(char *buf, int len, player *pl);
34 void lock_item_cmd(uint8_t *data, int len, player *pl);
35 void mark_item_cmd(uint8_t *data, int len, player *pl);
36 void look_at(object *op, int dx, int dy);
37 void look_at_cmd(char *buf, int len, player *pl);
38 void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof);
39 void inscribe_scroll_cmd(char *buf, int len, player *pl);
40 /* loop.c */
41 void request_info_cmd(char *buf, int len, socket_struct *ns);
42 bool handle_client(socket_struct *ns, player *pl);
43 void watchdog(void);
44 void do_server(void);
45 void update_players(void);
46 /* lowlevel.c */
47 void SockList_Init(SockList *sl);
48 void SockList_Term(SockList *sl);
49 void SockList_Reset(SockList *sl);
50 void SockList_ResetRead(SockList *sl);
51 void SockList_AddChar(SockList *sl, unsigned char c);
52 void SockList_AddShort(SockList *sl, uint16_t data);
53 void SockList_AddInt(SockList *sl, uint32_t data);
54 void SockList_AddInt64(SockList *sl, uint64_t data);
55 size_t SockList_Avail(const SockList *sl);
56 void SockList_AddString(SockList *sl, const char *data);
57 void SockList_AddData(SockList *sl, const void *data, size_t len);
58 void SockList_AddLen8Data(SockList *sl, const void *data, size_t len);
59 void SockList_AddLen16Data(SockList *sl, const void *data, size_t len);
60 void SockList_AddPrintf(SockList *sl, const char *format, ...);
61 void SockList_AddStringBuffer(SockList *sl, StringBuffer *sb);
62 void SockList_NullTerminate(SockList *sl);
63 int GetInt_String(const unsigned char *data);
64 short GetShort_String(const unsigned char *data);
65 int SockList_ReadPacket(int fd, SockList *sl, int len);
66 void Send_With_Handling(socket_struct *ns, SockList *sl);
67 void write_cs_stats(void);
68 /* metaserver.c */
69 void metaserver_init(void);
70 void metaserver_update(void);
71 int metaserver2_init(void);
72 void *metaserver2_thread(void *junk);
73 /* request.c */
74 void set_up_cmd(char *buf, int len, socket_struct *ns);
75 void add_me_cmd(char *buf, int len, socket_struct *ns);
76 void toggle_extended_infos_cmd(char *buf, int len, socket_struct *ns);
77 void toggle_extended_text_cmd(char *buf, int len, socket_struct *ns);
78 void ask_smooth_cmd(char *buf, int len, socket_struct *ns);
79 void new_player_cmd(uint8_t *buf, int len, player *pl);
80 void reply_cmd(char *buf, int len, player *pl);
81 void version_cmd(char *buf, int len, socket_struct *ns);
82 void set_sound_cmd(char *buf, int len, socket_struct *ns);
83 void map_newmap_cmd(socket_struct *ns);
84 void move_cmd(char *buf, int len, player *pl);
85 void send_query(socket_struct *ns, uint8_t flags, const char *text);
86 void esrv_update_stats(player *pl);
87 void esrv_new_player(player *pl, uint32_t weight);
88 void esrv_send_animation(socket_struct *ns, const Animations *anim);
89 void draw_client_map(object *pl);
90 void esrv_map_scroll(socket_struct *ns, int dx, int dy);
91 void send_plugin_custom_message(object *pl, char *buf);
92 void send_exp_table(socket_struct *ns, char *params);
93 void send_skill_info(socket_struct *ns, char *params);
94 void send_spell_paths(socket_struct *ns, char *params);
95 void send_race_list(socket_struct *ns, char *params);
96 void send_race_info(socket_struct *ns, char *params);
97 void send_class_list(socket_struct *ns, char *params);
98 void send_class_info(socket_struct *ns, char *params);
99 void esrv_update_spells(player *pl);
100 void esrv_remove_spell(player *pl, object *spell);
101 void esrv_send_pickup(player *pl);
102 void esrv_add_spells(player *pl, object *spell);
103 void send_tick(player *pl);
104 void send_file(socket_struct *ns, const char *file);
105 void account_login_cmd(char *buf, int len, socket_struct *ns);
106 void account_new_cmd(char *buf, int len, socket_struct *ns);
107 void account_add_player_cmd(char *buf, int len, socket_struct *ns);
108 void account_play_cmd(char *buf, int len, socket_struct *ns);
109 void send_account_players(socket_struct *ns);
110 void create_player_cmd(char *buf, int len, socket_struct *ns);
111 void account_password(char *buf, int len, socket_struct *ns);
112 /* requestinfo.c */
113 void send_new_char_info(socket_struct *ns);
114 void send_map_info(socket_struct *ns);
115 /* sounds.c */
116 void play_sound_player_only(player *pl, int8_t sound_type, object *emitter, int dir, const char *action);
117 void play_sound_map(int8_t sound_type, object *emitter, int dir, const char *action);
118 void send_background_music(player *pl, const char *music);
119 void player_update_bg_music(object *player);