mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
55ed61fbea
Signed-off-by: DL6ER <dl6er@dl6er.de>
28 lines
887 B
C
28 lines
887 B
C
/* Pi-hole: A black hole for Internet advertisements
|
|
* (c) 2019 Pi-hole, LLC (https://pi-hole.net)
|
|
* Network-wide ad blocking via your own hardware.
|
|
*
|
|
* FTL Engine
|
|
* Socket prototypes
|
|
*
|
|
* This file is copyright under the latest version of the EUPL.
|
|
* Please see LICENSE file for your rights under this license. */
|
|
#ifndef SOCKET_H
|
|
#define SOCKET_H
|
|
|
|
void close_telnet_socket(void);
|
|
void close_unix_socket(void);
|
|
void seom(const int sock);
|
|
void ssend(const int sock, const char *format, ...) __attribute__ ((format (gnu_printf, 2, 3)));
|
|
void swrite(const int sock, const void* value, const size_t size);
|
|
void *telnet_listening_thread_IPv4(void *args);
|
|
void *telnet_listening_thread_IPv6(void *args);
|
|
void *socket_listening_thread(void *args);
|
|
bool ipv6_available(void);
|
|
void bind_sockets(void);
|
|
|
|
extern bool ipv4telnet, ipv6telnet;
|
|
extern bool istelnet[MAXCONNS];
|
|
|
|
#endif //SOCKET_H
|