mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
protocol_helper.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 PROTOCOL_HELPER_H
19#define PROTOCOL_HELPER_H
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include "protocol.h"
26
27 int send_cmd(struct protocol *cmd, int fd);
28 int recv_cmd(struct protocol *cmd, int fd, int block);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif /* PROTOCOL_HELPER_H */
int send_cmd(struct protocol *cmd, int fd)
Serialize and transmit a renderd protocol command message over a socket.
Definition protocol_helper.c:38
int recv_cmd(struct protocol *cmd, int fd, int block)
Receive a renderd protocol command message from a socket.
Definition protocol_helper.c:107
Version 3 wire protocol message packet (PROTO_VER == 3).
Definition protocol.h:89