… | |
… | |
148 | int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position |
148 | int ACC (RW, current_x), ACC (RW, current_y); // CF+ last/current map position |
149 | char ACC (RW, client)[64]; // CF+ client name/version |
149 | char ACC (RW, client)[64]; // CF+ client name/version |
150 | |
150 | |
151 | /* If we get an incomplete packet, this is used to hold the data. */ |
151 | /* If we get an incomplete packet, this is used to hold the data. */ |
152 | uint8 inbuf[MAXSOCKBUF]; |
152 | uint8 inbuf[MAXSOCKBUF]; |
153 | player *pl;//TODO should not be here, preferably |
153 | player *ACC (RO, pl);//TODO should not be here, preferably |
|
|
154 | |
|
|
155 | int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ |
154 | |
156 | |
155 | iow socket_ev; void socket_cb (iow &w, int got); |
157 | iow socket_ev; void socket_cb (iow &w, int got); |
156 | |
158 | |
157 | client_socket (int fd, const char *from_ip); |
159 | client_socket (int fd, const char *from_ip); |
158 | ~client_socket (); |
160 | ~client_socket (); |