Crossfire Server, Branches 1.12  R18729
sockproto.h
Go to the documentation of this file.
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, short face_num, int nocache);
6 void send_image_info(socket_struct *ns, char *params);
7 void send_image_sums(socket_struct *ns, char *params);
8 /* info.c */
9 void flush_output_element(const object *pl, Output_Buf *outputs);
10 void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *message, const char *oldmessage);
11 void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *new_format, const char *old_format, ...);
12 void ext_info_map(int color, const mapstruct *map, uint8 type, uint8 subtype, const char *str1, const char *str2);
13 void ext_info_map_except(int color, const mapstruct *map, const object *op, uint8 type, uint8 subtype, const char *str1, const char *str2);
14 void ext_info_map_except2(int color, const mapstruct *map, const object *op1, const object *op2, int type, int subtype, const char *str1, const char *str2);
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_server(void);
22 void free_all_newserver(void);
25 /* item.c */
26 void esrv_draw_look(object *pl);
27 void esrv_send_inventory(object *pl, object *op);
28 void esrv_update_item(int flags, object *pl, object *op);
29 void esrv_send_item(object *pl, object *op);
30 void esrv_del_item(player *pl, int tag);
31 void examine_cmd(char *buf, int len, player *pl);
32 void apply_cmd(char *buf, int len, player *pl);
33 void lock_item_cmd(uint8 *data, int len, player *pl);
34 void mark_item_cmd(uint8 *data, int len, player *pl);
35 void look_at(object *op, int dx, int dy);
36 void look_at_cmd(char *buf, int len, player *pl);
37 void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof);
38 void inscribe_scroll_cmd(char *buf, int len, player *pl);
39 /* loop.c */
40 void request_info_cmd(char *buf, int len, socket_struct *ns);
42 void watchdog(void);
43 void do_server(void);
44 /* lowlevel.c */
45 void SockList_Init(SockList *sl);
46 void SockList_Term(SockList *sl);
47 void SockList_Reset(SockList *sl);
49 void SockList_AddChar(SockList *sl, char c);
50 void SockList_AddShort(SockList *sl, uint16 data);
51 void SockList_AddInt(SockList *sl, uint32 data);
52 void SockList_AddInt64(SockList *sl, uint64 data);
53 size_t SockList_Avail(const SockList *sl);
54 void SockList_AddString(SockList *sl, const char *data);
55 void SockList_AddData(SockList *sl, const void *data, size_t len);
56 void SockList_AddLen8Data(SockList *sl, const void *data, size_t len);
57 void SockList_AddPrintf(SockList *sl, const char *format, ...);
60 int GetInt_String(const unsigned char *data);
61 short GetShort_String(const unsigned char *data);
62 int SockList_ReadPacket(int fd, SockList *sl, int len);
65 void write_cs_stats(void);
66 /* metaserver.c */
67 void metaserver_init(void);
68 void metaserver_update(void);
69 int metaserver2_init(void);
70 void *metaserver2_thread(void *junk);
71 /* request.c */
72 void set_up_cmd(char *buf, int len, socket_struct *ns);
73 void add_me_cmd(char *buf, int len, socket_struct *ns);
74 void toggle_extended_infos_cmd(char *buf, int len, socket_struct *ns);
75 void toggle_extended_text_cmd(char *buf, int len, socket_struct *ns);
76 void ask_smooth_cmd(char *buf, int len, socket_struct *ns);
77 void new_player_cmd(uint8 *buf, int len, player *pl);
78 void reply_cmd(char *buf, int len, player *pl);
79 void version_cmd(char *buf, int len, socket_struct *ns);
80 void set_sound_cmd(char *buf, int len, socket_struct *ns);
81 void map_redraw_cmd(char *buf, int len, player *pl);
83 void move_cmd(char *buf, int len, player *pl);
84 void send_query(socket_struct *ns, uint8 flags, const char *text);
86 void esrv_new_player(player *pl, uint32 weight);
87 void esrv_send_animation(socket_struct *ns, short anim_num);
88 void draw_client_map2(object *pl);
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);
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 /* sounds.c */
105 void play_sound_player_only(player *pl, sint8 sound_type, object *emitter, int dir, const char *action);
106 void play_sound_map(sint8 sound_type, object *emitter, int dir, const char *action);
107 void send_background_music(player *pl, const char *music);
void SockList_AddPrintf(SockList *sl, const char *format,...)
Definition: lowlevel.c:187
signed char sint8
Definition: global.h:80
Definition: player.h:146
void do_server(void)
Definition: loop.c:383
void SockList_Reset(SockList *sl)
Definition: lowlevel.c:85
void esrv_new_player(player *pl, uint32 weight)
Definition: request.c:868
void * metaserver2_thread(void *junk)
Definition: metaserver.c:586
void map_redraw_cmd(char *buf, int len, player *pl)
Definition: request.c:662
void ext_info_map_except2(int color, const mapstruct *map, const object *op1, const object *op2, int type, int subtype, const char *str1, const char *str2)
Definition: info.c:330
void SockList_Init(SockList *sl)
Definition: lowlevel.c:67
void esrv_send_item(object *pl, object *op)
Definition: standalone.c:197
void set_face_mode_cmd(char *buf, int len, socket_struct *ns)
Definition: image.c:53
void request_info_cmd(char *buf, int len, socket_struct *ns)
Definition: loop.c:146
void SockList_ResetRead(SockList *sl)
Definition: lowlevel.c:94
int GetInt_String(const unsigned char *data)
Definition: lowlevel.c:239
void look_at_cmd(char *buf, int len, player *pl)
Definition: item.c:754
void version_cmd(char *buf, int len, socket_struct *ns)
Definition: request.c:621
void metaserver_update(void)
Definition: metaserver.c:134
void esrv_send_animation(socket_struct *ns, short anim_num)
Definition: request.c:895
void SockList_AddShort(SockList *sl, uint16 data)
Definition: lowlevel.c:113
void esrv_update_item(int flags, object *pl, object *op)
Definition: standalone.c:200
void magic_mapping_mark(object *pl, char *map_mark, int strength)
Definition: info.c:497
void send_image_sums(socket_struct *ns, char *params)
Definition: image.c:165
void init_server(void)
Definition: init.c:173
void send_image_info(socket_struct *ns, char *params)
Definition: image.c:138
void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *message, const char *oldmessage)
Definition: standalone.c:171
void esrv_send_inventory(object *pl, object *op)
Definition: item.c:307
void handle_client(socket_struct *ns, player *pl)
Definition: loop.c:200
void draw_magic_map(object *pl)
Definition: info.c:542
void inscribe_scroll_cmd(char *buf, int len, player *pl)
Definition: item.c:841
void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *new_format, const char *old_format,...)
Definition: standalone.c:175
void send_skill_info(socket_struct *ns, char *params)
Definition: request.c:1505
void esrv_add_spells(player *pl, object *spell)
Definition: request.c:1812
void send_class_list(socket_struct *ns, char *params)
Definition: request.c:1642
void free_newsocket(socket_struct *ns)
Definition: init.c:305
void free_all_newserver(void)
Definition: init.c:292
void map_newmap_cmd(socket_struct *ns)
Definition: request.c:672
uint32 tag_t
Definition: object.h:40
void draw_client_map2(object *pl)
Definition: request.c:1194
void send_plugin_custom_message(object *pl, char *buf)
Definition: request.c:1470
void new_player_cmd(uint8 *buf, int len, player *pl)
Definition: request.c:492
void SockList_AddInt64(SockList *sl, uint64 data)
Definition: lowlevel.c:137
void SockList_AddData(SockList *sl, const void *data, size_t len)
Definition: lowlevel.c:164
int is_valid_faceset(int fsn)
Definition: image.c:575
void send_exp_table(socket_struct *ns, char *params)
Definition: request.c:1482
void send_background_music(player *pl, const char *music)
Definition: sounds.c:121
short GetShort_String(const unsigned char *data)
Definition: lowlevel.c:243
void SockList_Term(SockList *sl)
Definition: lowlevel.c:77
void write_socket_buffer(socket_struct *ns)
Definition: lowlevel.c:418
void send_query(socket_struct *ns, uint8 flags, const char *text)
Definition: request.c:727
void flush_output_element(const object *pl, Output_Buf *outputs)
Definition: info.c:108
void SockList_AddString(SockList *sl, const char *data)
Definition: lowlevel.c:154
unsigned char uint8
Definition: global.h:75
void look_at(object *op, int dx, int dy)
Definition: item.c:687
void play_sound_map(sint8 sound_type, object *emitter, int dir, const char *action)
Definition: sounds.c:90
size_t SockList_Avail(const SockList *sl)
Definition: lowlevel.c:231
void mark_item_cmd(uint8 *data, int len, player *pl)
Definition: item.c:655
void send_race_info(socket_struct *ns, char *params)
Definition: request.c:1600
unsigned short uint16
Definition: global.h:67
void esrv_map_scroll(socket_struct *ns, int dx, int dy)
Definition: request.c:1432
void send_class_info(socket_struct *ns, char *params)
Definition: request.c:1664
void set_sound_cmd(char *buf, int len, socket_struct *ns)
Definition: request.c:656
void SockList_AddChar(SockList *sl, char c)
Definition: lowlevel.c:103
void set_up_cmd(char *buf, int len, socket_struct *ns)
Definition: request.c:116
static const flag_definition flags[]
void draw_client_map(object *pl)
Definition: request.c:1371
void ext_info_map_except(int color, const mapstruct *map, const object *op, uint8 type, uint8 subtype, const char *str1, const char *str2)
Definition: info.c:318
void toggle_extended_infos_cmd(char *buf, int len, socket_struct *ns)
Definition: request.c:359
void lock_item_cmd(uint8 *data, int len, player *pl)
Definition: item.c:615
void esrv_draw_look(object *pl)
Definition: item.c:191
void init_connection(socket_struct *ns, const char *from_ip)
Definition: init.c:75
void send_tick(player *pl)
Definition: request.c:1863
void send_spell_paths(socket_struct *ns, char *params)
Definition: request.c:1530
void esrv_send_face(socket_struct *ns, short face_num, int nocache)
Definition: image.c:96
void write_cs_stats(void)
void ask_smooth_cmd(char *buf, int len, socket_struct *ns)
Definition: request.c:473
void SockList_AddLen8Data(SockList *sl, const void *data, size_t len)
Definition: lowlevel.c:176
void esrv_remove_spell(player *pl, object *spell)
Definition: request.c:1725
void toggle_extended_text_cmd(char *buf, int len, socket_struct *ns)
Definition: request.c:398
void examine_cmd(char *buf, int len, player *pl)
Definition: item.c:562
void apply_cmd(char *buf, int len, player *pl)
Definition: item.c:581
void play_sound_player_only(player *pl, sint8 sound_type, object *emitter, int dir, const char *action)
Definition: sounds.c:40
void esrv_send_pickup(player *pl)
Definition: request.c:1747
void watchdog(void)
void final_free_player(player *pl)
Definition: init.c:328
void add_me_cmd(char *buf, int len, socket_struct *ns)
Definition: request.c:320
unsigned int uint32
Definition: global.h:58
void set_title(const object *pl, char *buf, size_t len)
Definition: info.c:415
void send_race_list(socket_struct *ns, char *params)
Definition: request.c:1578
void reply_cmd(char *buf, int len, player *pl)
Definition: request.c:555
void metaserver_init(void)
Definition: metaserver.c:68
void SockList_AddStringBuffer(SockList *sl, StringBuffer *sb)
Definition: lowlevel.c:210
int metaserver2_init(void)
Definition: metaserver.c:255
void rangetostring(const object *pl, char *obuf, size_t len)
Definition: info.c:343
void esrv_update_spells(player *pl)
Definition: standalone.c:216
Definition: map.h:346
void SockList_NullTerminate(SockList *sl)
Definition: lowlevel.c:222
void SockList_AddInt(SockList *sl, uint32 data)
Definition: lowlevel.c:124
void esrv_update_stats(player *pl)
Definition: request.c:779
void esrv_del_item(player *pl, int tag)
Definition: standalone.c:213
int SockList_ReadPacket(int fd, SockList *sl, int len)
Definition: lowlevel.c:260
void send_face_cmd(char *buff, int len, socket_struct *ns)
Definition: image.c:80
void ext_info_map(int color, const mapstruct *map, uint8 type, uint8 subtype, const char *str1, const char *str2)
Definition: standalone.c:184
void move_cmd(char *buf, int len, player *pl)
Definition: request.c:694
void Send_With_Handling(socket_struct *ns, SockList *sl)
Definition: lowlevel.c:541
void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof)
Definition: item.c:773