mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
cache_expire.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007 - 2026 by mod_tile contributors (see AUTHORS file)
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; If not, see http://www.gnu.org/licenses/.
16 */
17
18#ifndef CACHE_EXPIRE_H
19#define CACHE_EXPIRE_H
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
26#define HTCP_EXPIRE_CACHE 1
28#define HTCP_EXPIRE_CACHE_PORT "4827"
29
30 void cache_expire(int sock, const char *host, const char *uri, int x, int y, int z);
31 int init_cache_expire(const char *htcphost);
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif /* CACHE_EXPIRE_H */
int init_cache_expire(const char *htcphost)
Initialize and connect a UDP socket to an HTCP caching server.
Definition cache_expire.c:202
void cache_expire(int sock, const char *host, const char *uri, int x, int y, int z)
Format a tile URL from Z/X/Y coordinates and send an HTCP purge request.
Definition cache_expire.c:175