mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
Remove private.h
This commit is contained in:
1 parent
054475ddbf
commit
42c89732c8
7 files changed
+12
-18
No files matched your search
@@ -1,6 +1,5 @@
|
||||
#include "dns.h"
|
||||
#include "log.h"
|
||||
#include "private.h"
|
||||
#include "str.h"
|
||||
#include "timer.h"
|
||||
#include "util.h"
|
||||
@@ -63,8 +62,8 @@ static size_t mg_dns_parse_name_depth(const uint8_t *s, size_t len, size_t ofs,
|
||||
return i;
|
||||
}
|
||||
|
||||
static size_t mg_dns_parse_name(const uint8_t *s, size_t n, size_t ofs, char *dst,
|
||||
size_t dstlen) {
|
||||
static size_t mg_dns_parse_name(const uint8_t *s, size_t n, size_t ofs,
|
||||
char *dst, size_t dstlen) {
|
||||
return mg_dns_parse_name_depth(s, n, ofs, dst, dstlen, 0);
|
||||
}
|
||||
|
||||
@@ -190,7 +189,7 @@ static void dns_cb(struct mg_connection *c, int ev, void *ev_data,
|
||||
}
|
||||
|
||||
static void mg_dns_send(struct mg_connection *c, const struct mg_str *name,
|
||||
uint16_t txnid, bool ipv6) {
|
||||
uint16_t txnid, bool ipv6) {
|
||||
struct {
|
||||
struct mg_dns_header header;
|
||||
uint8_t data[256];
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "base64.h"
|
||||
#include "log.h"
|
||||
#include "net.h"
|
||||
#include "private.h"
|
||||
#include "ssi.h"
|
||||
#include "util.h"
|
||||
#include "version.h"
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "base64.h"
|
||||
#include "event.h"
|
||||
#include "log.h"
|
||||
#include "private.h"
|
||||
#include "url.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,6 @@
|
||||
#include "event.h"
|
||||
#include "log.h"
|
||||
#include "net.h"
|
||||
#include "private.h"
|
||||
#include "str.h"
|
||||
#include "timer.h"
|
||||
#include "tls.h"
|
||||
@@ -316,7 +315,8 @@ static void setsockopts(struct mg_connection *c) {
|
||||
setsockopt(FD(c), SOL_TCP, TCP_QUICKACK, (char *) &on, sizeof(on));
|
||||
#endif
|
||||
setsockopt(FD(c), SOL_SOCKET, SO_KEEPALIVE, (char *) &on, sizeof(on));
|
||||
#if (defined(ESP32) && ESP32) || (defined(ESP8266) && ESP8266) || defined(__linux__)
|
||||
#if (defined(ESP32) && ESP32) || (defined(ESP8266) && ESP8266) || \
|
||||
defined(__linux__)
|
||||
int idle = 60;
|
||||
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle));
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user