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

Comparing deliantra/server/include/newserver.h (file contents):
Revision 1.24 by root, Thu Dec 14 20:39:54 2006 UTC vs.
Revision 1.25 by root, Thu Dec 14 21:46:34 2006 UTC

112 struct statsinfo stats; 112 struct statsinfo stats;
113 113
114 char *ACC (RW, host); /* Which host it is connected from (ip address) */ 114 char *ACC (RW, host); /* Which host it is connected from (ip address) */
115 uint8 ACC (RW, password_fails); /* how many times the player has failed to give the right password */ 115 uint8 ACC (RW, password_fails); /* how many times the player has failed to give the right password */
116 Buffer outputbuffer; /* For undeliverable data */ 116 Buffer outputbuffer; /* For undeliverable data */
117
117 uint32 ACC (RO, facecache):1; /* If true, client is caching images */ 118 bool ACC (RW, facecache); /* If true, client is caching images */
118 uint32 ACC (RO, sent_scroll):1; 119 bool ACC (RW, sent_scroll);
119 uint32 ACC (RO, sound):1; /* does the client want sound */ 120 bool ACC (RW, sound); /* does the client want sound */
120 uint32 ACC (RO, exp64):1; /* Client wants 64 bit exp data, as well as skill data */ 121 bool ACC (RW, exp64); /* Client wants 64 bit exp data, as well as skill data */
121 uint32 ACC (RO, newmapcmd):1; /* Send newmap command when entering new map SMACFIGGEN */ 122 bool ACC (RW, newmapcmd); /* Send newmap command when entering new map SMACFIGGEN */
122 uint32 ACC (RO, plugincmd):1; /* CF+ extend the protocol through a plug-in */ 123 bool ACC (RW, plugincmd); /* CF+ extend the protocol through a plug-in */
123 uint32 ACC (RO, mapinfocmd):1; /* CF+ return map info and send map change info */ 124 bool ACC (RW, mapinfocmd); /* CF+ return map info and send map change info */
124 uint32 ACC (RO, extcmd):1; /* CF+ call into extensions/plugins */ 125 bool ACC (RW, extcmd); /* CF+ call into extensions/plugins */
125 uint32 ACC (RO, extmap):1; /* CF+ extend map comamnd with extra data */ 126 bool ACC (RW, extmap); /* CF+ extend map comamnd with extra data */
126 uint32 ACC (RO, buggy_mapscroll):1; /* CF+ client crashes on large mapscrolls */ 127 bool ACC (RW, buggy_mapscroll); /* CF+ client crashes on large mapscrolls */
127 uint32 ACC (RO, darkness):1; /* True if client wants darkness information */ 128 bool ACC (RW, darkness); /* True if client wants darkness information */
128 uint32 ACC (RO, image2):1; /* Client wants image2/face2 commands */ 129 bool ACC (RW, image2); /* Client wants image2/face2 commands */
129 uint32 ACC (RO, update_look):1; /* If true, we need to send the look window */ 130 bool ACC (RW, update_look); /* If true, we need to send the look window */
130 uint32 ACC (RO, can_write):1; /* Can we write to this socket? */
131 uint32 ACC (RO, has_readable_type):1; /* If true client accept additional text information 131 bool ACC (RW, has_readable_type); /* If true client accept additional text information */
132 used to arrange text in books, scrolls, or scripted dialogs */ 132 /* used to arrange text in books, scrolls, or scripted dialogs */
133 uint32 ACC (RO, monitor_spells):1; /* Client wishes to be informed when their spell list changes */ 133 bool ACC (RW, monitor_spells); /* Client wishes to be informed when their spell list changes */
134 uint32 ACC (RO, ext_mapinfos):1; /* If true client accept additionnal info on maps */ 134 bool ACC (RW, ext_mapinfos); /* If true client accept additionnal info on maps */
135 /* Below are flags for extedend infos to pass to client 135 /* Below are flags for extedend infos to pass to client
136 * with S->C mapextended command */ 136 * with S->C mapextended command */
137 uint32 ACC (RO, EMI_smooth):1; /* Send smooth in extendmapinfos */ 137 bool ACC (RW, EMI_smooth); /* Send smooth in extendmapinfos */
138
138 uint32 ACC (RW, supported_readables); /* each bit is a readable supported by client */ 139 uint32 ACC (RW, supported_readables); /* each bit is a readable supported by client */
139 uint32 ACC (RW, cs_version), ACC (RW, sc_version); /* versions of the client */ 140 uint32 ACC (RW, cs_version), ACC (RW, sc_version); /* versions of the client */
140 enum MapMode mapmode; /* Type of map commands the client wants. */ 141 enum MapMode mapmode; /* Type of map commands the client wants. */
141 uint16 ACC (RW, look_position); /* start of drawing of look window */ 142 uint16 ACC (RW, look_position); /* start of drawing of look window */
142 uint8 ACC (RW, mapx), ACC (RW, mapy); /* How large a map the client wants */ 143 uint8 ACC (RW, mapx), ACC (RW, mapy); /* How large a map the client wants */
157 ~client_socket (); 158 ~client_socket ();
158 159
159 int read_packet (); // returns length of packet or 0 160 int read_packet (); // returns length of packet or 0
160 void skip_packet (int len); // we have processed the packet, skip it 161 void skip_packet (int len); // we have processed the packet, skip it
161 162
163 void flush ();
164 void write_outputbuffer ();
162 void send (void *buf_, int len); 165 void send (void *buf_, int len);
163 166
164 void send_packet (const char *buf); 167 void send_packet (const char *buf);
165 void send_packet (const char *buf, int len); 168 void send_packet (const char *buf, int len);
166 void send_packet (packet &sl); 169 void send_packet (packet &sl);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines