mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-11-26 22:55:37 +08:00
Add systemd socket activation capability
Add support for a systemd.socket activation. Socket it passed from
systemd via file descriptor (see systemd.socket doc)
Also, added a few features for convenience:
* --conn/conv-timeout options to control conversation and connection
timeouts
* --shutdown option to shutdown service after all connections are
timeouted. This is for convent usage with systemd.socket
* test script which allows to smoke test udp speeder and its
socket activation capability
* example systemd unit files
This commit is contained in:
2
misc.h
2
misc.h
@@ -58,6 +58,8 @@ extern int mssfix;
|
||||
extern int manual_set_tun;
|
||||
extern int persist_tun;
|
||||
|
||||
extern bool shutdown_if_all_disconnected;
|
||||
|
||||
int from_normal_to_fec(conn_info_t &conn_info, char *data, int len, int &out_n, char **&out_arr, int *&out_len, my_time_t *&out_delay);
|
||||
int from_fec_to_normal(conn_info_t &conn_info, char *data, int len, int &out_n, char **&out_arr, int *&out_len, my_time_t *&out_delay);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user