TRIP Routing Daemon
TRIP (RFC 3219) Location Server Implementation
Loading...
Searching...
No Matches
server.h
Go to the documentation of this file.
1
/*
2
3
trip: Modern TRIP LS implementation
4
Copyright (C) 2026 arf20 (Ángel Ruiz Fernandez)
5
6
This program is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <https://www.gnu.org/licenses/>.
18
19
*/
20
26
27
#ifndef _SERVER_H
28
#define _SERVER_H
29
30
#include <
db/trib.h
>
31
32
#include <stdint.h>
33
#include <netinet/in.h>
34
35
36
typedef
struct
{
37
pthread_t thread;
38
struct
sockaddr_in6 listen_sa;
39
int
fd;
40
int
run;
41
trib_t
*trib;
42
}
server_t
;
43
44
45
server_t
*server_new(
const
struct
sockaddr_in6 *listen_sa,
trib_t
*trib);
46
void
server_run(
server_t
*server);
47
void
server_stop(
server_t
*server);
48
void
server_destroy(
server_t
*server);
49
50
#endif
/* _SERVER_H */
51
server_t
Definition
server.h:36
trib_t
Telephony Routing Information Base.
Definition
trib.h:140
trib.h
Telephony Routing Information Base.
src
api
server.h
Generated by
1.16.1