GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_proxy_conn.h
1//SPDX-License-Identifier: LGPL-2.0-or-later
2/*
3
4 Copyright (c) 2019-2020 Cyril Hrubis <metan@ucw.cz>
5
6 */
7
8#ifndef GP_PROXY_CONN_H
9#define GP_PROXY_CONN_H
10
11/*
12 * Creates a UNIX socket and starts listening for connections.
13 *
14 * @conn_path Path to an UNIX socket, pass NULL for default.
15 * @return A file descriptor.
16 */
17int gp_proxy_server_init(const char *conn_path);
18
19/*
20 * Connects to an UNIX sockets.
21 *
22 * @conn_path Path to an UNIX socket, pass NULL for default.
23 * @return A file descriptor.
24 */
25int gp_proxy_client_connect(const char *conn_path);
26
27#endif /* GP_PROXY_CONN_H */