mirror of
https://github.com/eddyem/small_tel.git
synced 2026-03-20 08:41:03 +03:00
Change netdaemon to poll & work with libusefull_macros, add weatherdaemon
This commit is contained in:
@@ -24,10 +24,10 @@
|
||||
#ifndef __SOCKET_H__
|
||||
#define __SOCKET_H__
|
||||
|
||||
// timeout for socket closing
|
||||
#define SOCKET_TIMEOUT (5.0)
|
||||
// time interval for data polling (seconds)
|
||||
#define T_INTERVAL (10.)
|
||||
// max amount of opened fd (+1 for server socket)
|
||||
#define MAX_FDS (11)
|
||||
|
||||
void daemonize(char *port);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user