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.3 by root, Sun May 21 23:46:38 2006 UTC vs.
Revision 1.47 by root, Wed Nov 16 23:42:01 2016 UTC

1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 *
4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 *
6 * Deliantra is free software: you can redistribute it and/or modify it under
7 * the terms of the Affero GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the Affero GNU General Public License
17 * and the GNU General Public License along with this program. If not, see
18 * <http://www.gnu.org/licenses/>.
19 *
20 * The authors can be reached via e-mail to <support@deliantra.net>
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();
4void read_client_images(void); 26void read_client_images();
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);
15void 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); 34void 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);
18void new_info_map(int color, mapstruct *map, const char *str); 35void 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); 36void set_title(object *pl, char *buf);
22void magic_mapping_mark(object *pl, char *map_mark, int strength);
23void draw_magic_map(object *pl); 37void draw_magic_map(object *pl);
24void Log_Kill(const char *Who, const char *What, int WhatType, const char *With, int WithType);
25/* init.c */ 38/* init.c */
26void InitConnection(NewSocket *ns, const char *from_ip);
27void init_ericserver(void); 39void init_ericserver();
28void free_all_newserver(void); 40void free_all_newserver();
29void free_newsocket(NewSocket *ns);
30void final_free_player(player *pl); 41void final_free_player(player *pl);
31/* item.c */ 42/* item.c */
32unsigned int query_flags(object *op);
33void esrv_draw_look(object *pl); 43void esrv_draw_look(player *pl);
34void esrv_send_inventory(object *pl, object *op); 44void esrv_send_inventory(object *pl, object *op);
35void esrv_update_item(int flags, object *pl, object *op); 45void esrv_update_item(int flags, object *pl, object *op);
36void esrv_send_item(object *pl, object *op); 46void esrv_send_item(object *pl, object *op);
37void esrv_del_item(player *pl, int tag); 47void esrv_del_item(player *pl, int tag);
38object *esrv_get_ob_from_count(object *pl, tag_t count);
39void ExamineCmd(char *buf, int len, player *pl); 48void ExamineCmd(char *buf, int len, player *pl);
49void ExCmd(char *buf, int len, player *pl);
40void ApplyCmd(char *buf, int len, player *pl); 50void ApplyCmd(char *buf, int len, player *pl);
41void LockItem(uint8 *data, int len, player *pl); 51void LockItem(char *data, int len, player *pl);
42void MarkItem(uint8 *data, int len, player *pl); 52void MarkItem(char *data, int len, player *pl);
43void look_at(object *op, int dx, int dy);
44void LookAt(char *buf, int len, player *pl); 53void LookAt(char *buf, int len, player *pl);
45void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof); 54void esrv_move_object(object *pl, tag_t to, tag_t tag, long nrof);
46/* loop.c */ 55/* loop.c */
47void RequestInfo(char *buf, int len, NewSocket *ns); 56void RequestInfo(char *buf, int len, client *ns);
48void Handle_Oldsocket(NewSocket *ns);
49void HandleClient(NewSocket *ns, player *pl);
50void watchdog(void); 57void watchdog();
51void flush_sockets(void);
52void doeric_server(void);
53/* lowlevel.c */ 58/* lowlevel.c */
54void Socket_Flush (NewSocket *ns);
55void SockList_Init(SockList *sl);
56void SockList_AddChar(SockList *sl, char c);
57void SockList_AddShort(SockList *sl, uint16 data);
58void SockList_AddInt(SockList *sl, uint32 data);
59void SockList_AddInt64(SockList *sl, uint64 data);
60int GetInt_String(unsigned char *data);
61short GetShort_String(unsigned char *data);
62int SockList_ReadPacket(int fd, SockList *sl, int len);
63void write_socket_buffer(NewSocket *ns);
64void Write_To_Socket(NewSocket *ns, unsigned char *buf, int len);
65void cs_write_string(NewSocket *ns, const char *buf, int len);
66void Send_With_Handling(NewSocket *ns, SockList *msg);
67void Write_String_To_Socket(NewSocket *ns, char *buf, int len);
68void write_cs_stats(void); 59void write_cs_stats();
69/* metaserver.c */
70void metaserver_init(void);
71void metaserver_update(void);
72/* request.c */ 60/* request.c */
73void SetUp(char *buf, int len, NewSocket *ns); 61void SetUp(char *buf, int len, client *ns);
74void AddMeCmd(char *buf, int len, NewSocket *ns); 62void AddMeCmd(char *buf, int len, client *ns);
75void ToggleExtendedInfos(char *buf, int len, NewSocket *ns); 63void ToggleExtendedInfos(char *buf, int len, client *ns);
76void ToggleExtendedText (char *buf, int len, NewSocket *ns);
77void AskSmooth(char *buf, int len, NewSocket *ns); 64void AskSmooth(char *buf, int len, client *ns);
78void PlayerCmd(char *buf, int len, player *pl); 65void PlayerCmd(char *buf, int len, player *pl);
79void NewPlayerCmd(uint8 *buf, int len, player *pl);
80void ReplyCmd(char *buf, int len, player *pl); 66void NewPlayerCmd(char *buf, int len, player *pl);
67void ReplyCmd(char *buf, int len, client *ns);
81void VersionCmd(char *buf, int len, NewSocket *ns); 68void VersionCmd(char *buf, int len, client *ns);
82void SetSound(char *buf, int len, NewSocket *ns); 69void SetSound(char *buf, int len, client *ns);
83void MapRedrawCmd(char *buff, int len, player *pl); 70void MapRedrawCmd(char *buff, int len, player *pl);
71void ExtCmd(char *buff, int len, player *pl);
72void ExtiCmd(char *buff, int len, client *ns);
84void MapInfoCmd(char *buff, int len, player *pl); 73void MapInfoCmd(char *buff, int len, player *pl);
85void MapNewmapCmd(player *pl);
86void MoveCmd(char *buf, int len, player *pl); 74void MoveCmd(char *buf, int len, player *pl);
87void send_query(NewSocket *ns, uint8 flags, char *text); 75void send_query(client *ns, uint8 flags, const char *text);
88void esrv_update_stats(player *pl); 76void esrv_update_stats(player *pl);
89void esrv_new_player(player *pl, uint32 weight); 77void esrv_new_player(player *pl);
90void esrv_send_animation(NewSocket *ns, short anim_num);
91int getExtendedMapInfoSize(NewSocket *ns); 78int getExtendedMapInfoSize(client *ns);
92void draw_client_map1(object *pl);
93void draw_client_map(object *pl); 79void draw_client_map(player *pl);
94void esrv_map_scroll(NewSocket *ns, int dx, int dy);
95void send_plugin_custom_message(object *pl, char *buf);
96void send_skill_info(NewSocket *ns, char *params);
97void send_spell_paths (NewSocket *ns, char *params);
98void esrv_update_spells(player *pl); 80void esrv_update_spells(player *pl);
99void esrv_remove_spell(player *pl, object *spell); 81void esrv_remove_spell(player *pl, object *spell);
100void esrv_add_spells(player *pl, object *spell); 82void esrv_add_spells(player *pl, object *spell);
101/* sounds.c */
102void play_sound_player_only(player *pl, short soundnum, sint8 x, sint8 y);
103void play_sound_map(mapstruct *map, int x, int y, short sound_num);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines