ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/sockproto.h
(Generate patch)

Comparing deliantra/server/include/sockproto.h (file contents):
Revision 1.1.1.2 by elmex, Wed Feb 22 18:01:58 2006 UTC vs.
Revision 1.31 by root, Tue Jun 5 13:05:02 2007 UTC

1/*
2 * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game.
3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
5 *
6 * Crossfire TRT is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51
18 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 * The authors can be reached via e-mail to <crossfire@schmorp.de>
21 */
22
1/* image.c */ 23/* image.c */
2int is_valid_faceset(int fsn); 24int is_valid_faceset(int fsn);
3void free_socket_images(void); 25void free_socket_images(void);
4void read_client_images(void); 26void read_client_images(void);
5void SetFaceMode(char *buf, int len, NewSocket *ns); 27void SetFaceMode(char *buf, int len, client *ns);
6void SendFaceCmd(char *buff, int len, NewSocket *ns); 28void AskFaceCmd(char *buf, int len, client *ns);
7void esrv_send_face(NewSocket *ns, short face_num, int nocache);
8void send_image_info(NewSocket *ns, char *params); 29void send_image_info(client *ns, char *params);
9void send_image_sums(NewSocket *ns, char *params); 30void send_image_sums(client *ns, char *params);
10/* info.c */ 31/* info.c */
11void flush_output_element(const object *pl, Output_Buf *outputs);
12void new_draw_info(int flags, int pri, const object *pl, const char *buf); 32void new_draw_info(int flags, int pri, const object *pl, const char *buf);
13void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...); 33void new_draw_info_format(int flags, int pri, const object *pl, const char *format, ...);
14void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* message,const char* oldmessage); 34void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* message,const char* oldmessage);
15void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* old_format, char* new_format, ...); 35void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char* old_format, char* new_format, ...);
16void new_info_map_except(int color, mapstruct *map, object *op, const char *str); 36void new_info_map_except(int color, maptile *map, object *op, const char *str);
17void new_info_map_except2(int color, mapstruct *map, object *op1, object *op2, const char *str); 37void new_info_map_except2(int color, maptile *map, object *op1, object *op2, const char *str);
18void new_info_map(int color, mapstruct *map, const char *str); 38void new_info_map(int color, maptile *map, const char *str);
19void clear_win_info(object *op);
20void rangetostring(object *pl, char *obuf);
21void set_title(object *pl, char *buf); 39void set_title(object *pl, char *buf);
22void magic_mapping_mark(object *pl, char *map_mark, int strength); 40void magic_mapping_mark(object *pl, char *map_mark, int strength);
23void draw_magic_map(object *pl); 41void draw_magic_map(object *pl);
24void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType); 42void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType);
25/* init.c */ 43/* init.c */
26void InitConnection(NewSocket *ns, const char *from_ip);
27void init_ericserver(void); 44void init_ericserver(void);
28void free_all_newserver(void); 45void free_all_newserver(void);
29void free_newsocket(NewSocket *ns);
30void final_free_player(player *pl); 46void final_free_player(player *pl);
31/* item.c */ 47/* item.c */
32unsigned int query_flags(object *op); 48unsigned int query_flags(object *op);
33void esrv_draw_look(object *pl); 49void esrv_draw_look(player *pl);
34void esrv_send_inventory(object *pl, object *op); 50void esrv_send_inventory(object *pl, object *op);
35void esrv_update_item(int flags, object *pl, object *op); 51void esrv_update_item(int flags, object *pl, object *op);
36void esrv_send_item(object *pl, object *op); 52void esrv_send_item(object *pl, object *op);
37void esrv_del_item(player *pl, int tag); 53void esrv_del_item(player *pl, int tag);
38object *esrv_get_ob_from_count(object *pl, tag_t count); 54object *esrv_get_ob_from_count(object *pl, tag_t count);
39void ExamineCmd(char *buf, int len, player *pl); 55void ExamineCmd(char *buf, int len, player *pl);
56void ExCmd(char *buf, int len, player *pl);
40void ApplyCmd(char *buf, int len, player *pl); 57void ApplyCmd(char *buf, int len, player *pl);
41void LockItem(uint8 *data, int len, player *pl); 58void LockItem(char *data, int len, player *pl);
42void MarkItem(uint8 *data, int len, player *pl); 59void MarkItem(char *data, int len, player *pl);
43void look_at(object *op, int dx, int dy);
44void LookAt(char *buf, int len, player *pl); 60void LookAt(char *buf, int len, player *pl);
45void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof); 61void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof);
46/* loop.c */ 62/* loop.c */
47void RequestInfo(char *buf, int len, NewSocket *ns); 63void RequestInfo(char *buf, int len, client *ns);
48void Handle_Oldsocket(NewSocket *ns);
49void HandleClient(NewSocket *ns, player *pl);
50void watchdog(void); 64void watchdog(void);
65void flush_sockets(void);
51void doeric_server(void); 66void doeric_server(void);
52/* lowlevel.c */ 67/* lowlevel.c */
53void SockList_Init(SockList *sl);
54void SockList_AddChar(SockList *sl, char c);
55void SockList_AddShort(SockList *sl, uint16 data);
56void SockList_AddInt(SockList *sl, uint32 data);
57void SockList_AddInt64(SockList *sl, uint64 data);
58int GetInt_String(unsigned char *data);
59short GetShort_String(unsigned char *data);
60int SockList_ReadPacket(int fd, SockList *sl, int len);
61void write_socket_buffer(NewSocket *ns);
62void Write_To_Socket(NewSocket *ns, unsigned char *buf, int len);
63void cs_write_string(NewSocket *ns, const char *buf, int len);
64void Send_With_Handling(NewSocket *ns, SockList *msg);
65void Write_String_To_Socket(NewSocket *ns, char *buf, int len);
66void write_cs_stats(void); 68void write_cs_stats(void);
67/* metaserver.c */
68void metaserver_init(void);
69void metaserver_update(void);
70/* request.c */ 69/* request.c */
71void SetUp(char *buf, int len, NewSocket *ns); 70void SetUp(char *buf, int len, client *ns);
72void AddMeCmd(char *buf, int len, NewSocket *ns); 71void AddMeCmd(char *buf, int len, client *ns);
73void ToggleExtendedInfos(char *buf, int len, NewSocket *ns); 72void ToggleExtendedInfos(char *buf, int len, client *ns);
74void ToggleExtendedText (char *buf, int len, NewSocket *ns); 73void ToggleExtendedText (char *buf, int len, client *ns);
75void AskSmooth(char *buf, int len, NewSocket *ns); 74void AskSmooth(char *buf, int len, client *ns);
76void PlayerCmd(char *buf, int len, player *pl); 75void PlayerCmd(char *buf, int len, player *pl);
77void NewPlayerCmd(uint8 *buf, int len, player *pl);
78void ReplyCmd(char *buf, int len, player *pl); 76void NewPlayerCmd(char *buf, int len, player *pl);
77void ReplyCmd(char *buf, int len, client *ns);
79void VersionCmd(char *buf, int len, NewSocket *ns); 78void VersionCmd(char *buf, int len, client *ns);
80void SetSound(char *buf, int len, NewSocket *ns); 79void SetSound(char *buf, int len, client *ns);
81void MapRedrawCmd(char *buff, int len, player *pl); 80void MapRedrawCmd(char *buff, int len, player *pl);
82void MapNewmapCmd(player *pl); 81void ExtCmd(char *buff, int len, player *pl);
82void ExtiCmd(char *buff, int len, client *ns);
83void MapInfoCmd(char *buff, int len, player *pl);
83void MoveCmd(char *buf, int len, player *pl); 84void MoveCmd(char *buf, int len, player *pl);
84void send_query(NewSocket *ns, uint8 flags, char *text); 85void send_query(client *ns, uint8 flags, const char *text);
85void esrv_update_stats(player *pl); 86void esrv_update_stats(player *pl);
86void esrv_new_player(player *pl, uint32 weight); 87void esrv_new_player(player *pl, uint32 weight);
87void esrv_send_animation(NewSocket *ns, short anim_num);
88int getExtendedMapInfoSize(NewSocket *ns); 88int getExtendedMapInfoSize(client *ns);
89void draw_client_map1(object *pl);
90void draw_client_map(object *pl); 89void draw_client_map(player *pl);
91void esrv_map_scroll(NewSocket *ns, int dx, int dy);
92void send_plugin_custom_message(object *pl, char *buf); 90void send_plugin_custom_message(object *pl, char *buf);
93void send_skill_info(NewSocket *ns, char *params); 91void send_skill_info(client *ns, char *params);
94void send_spell_paths (NewSocket *ns, char *params); 92void send_spell_paths (client *ns, char *params);
95void esrv_update_spells(player *pl); 93void esrv_update_spells(player *pl);
96void esrv_remove_spell(player *pl, object *spell); 94void esrv_remove_spell(player *pl, object *spell);
97void esrv_add_spells(player *pl, object *spell); 95void esrv_add_spells(player *pl, object *spell);
98/* sounds.c */ 96/* sounds.c */
99void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y); 97void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y);
100void play_sound_map(mapstruct *map, int x, int y, short sound_num); 98void play_sound_map(maptile *map, int x, int y, short sound_num);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines