Merge remote-tracking branch 'origin/Debug'
This commit is contained in:
commit
6afdc9bd1b
Binary file not shown.
Binary file not shown.
3
anet.c
3
anet.c
|
@ -139,6 +139,9 @@ int anetResolve(char *err, char *host, char *ipbuf)
|
||||||
static int anetCreateSocket(char *err, int domain) {
|
static int anetCreateSocket(char *err, int domain) {
|
||||||
int s, on = 1;
|
int s, on = 1;
|
||||||
if ((s = socket(domain, SOCK_STREAM, 0)) == -1) {
|
if ((s = socket(domain, SOCK_STREAM, 0)) == -1) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
errno = WSAGetLastError();
|
||||||
|
#endif
|
||||||
anetSetError(err, "creating socket: %s", strerror(errno));
|
anetSetError(err, "creating socket: %s", strerror(errno));
|
||||||
return ANET_ERR;
|
return ANET_ERR;
|
||||||
}
|
}
|
||||||
|
|
BIN
coaa1090.obj
BIN
coaa1090.obj
Binary file not shown.
Binary file not shown.
|
@ -132,6 +132,8 @@ void modesInit(void) {
|
||||||
{Modes.net_output_raw_size = MODES_RAWOUT_BUF_FLUSH;}
|
{Modes.net_output_raw_size = MODES_RAWOUT_BUF_FLUSH;}
|
||||||
if (Modes.net_output_raw_rate > (MODES_RAWOUT_BUF_RATE))
|
if (Modes.net_output_raw_rate > (MODES_RAWOUT_BUF_RATE))
|
||||||
{Modes.net_output_raw_rate = MODES_RAWOUT_BUF_RATE;}
|
{Modes.net_output_raw_rate = MODES_RAWOUT_BUF_RATE;}
|
||||||
|
if (Modes.net_sndbuf_size > (MODES_NET_SNDBUF_MAX))
|
||||||
|
{Modes.net_sndbuf_size = MODES_NET_SNDBUF_MAX;}
|
||||||
|
|
||||||
// Initialise the Block Timers to something half sensible
|
// Initialise the Block Timers to something half sensible
|
||||||
ftime(&Modes.stSystemTimeBlk);
|
ftime(&Modes.stSystemTimeBlk);
|
||||||
|
@ -414,6 +416,7 @@ void showHelp(void) {
|
||||||
"--net-ro-size <size> TCP raw output minimum size (default: 0)\n"
|
"--net-ro-size <size> TCP raw output minimum size (default: 0)\n"
|
||||||
"--net-ro-rate <rate> TCP raw output memory flush rate (default: 0)\n"
|
"--net-ro-rate <rate> TCP raw output memory flush rate (default: 0)\n"
|
||||||
"--net-heartbeat <rate> TCP heartbeat rate in seconds (default: 60 sec)\n"
|
"--net-heartbeat <rate> TCP heartbeat rate in seconds (default: 60 sec)\n"
|
||||||
|
"--net-buffer <n> TCP buffer size 64Kb * (2^n) (default: n=0, 64Kb)\n"
|
||||||
"--lat <latitude> Reference/receiver latitude for surface posn (opt)\n"
|
"--lat <latitude> Reference/receiver latitude for surface posn (opt)\n"
|
||||||
"--lon <longitude> Reference/receiver longitude for surface posn (opt)\n"
|
"--lon <longitude> Reference/receiver longitude for surface posn (opt)\n"
|
||||||
"--fix Enable single-bits error correction using CRC\n"
|
"--fix Enable single-bits error correction using CRC\n"
|
||||||
|
@ -561,6 +564,8 @@ int main(int argc, char **argv) {
|
||||||
Modes.net_http_port = atoi(argv[++j]);
|
Modes.net_http_port = atoi(argv[++j]);
|
||||||
} else if (!strcmp(argv[j],"--net-sbs-port") && more) {
|
} else if (!strcmp(argv[j],"--net-sbs-port") && more) {
|
||||||
Modes.net_output_sbs_port = atoi(argv[++j]);
|
Modes.net_output_sbs_port = atoi(argv[++j]);
|
||||||
|
} else if (!strcmp(argv[j],"--net-buffer") && more) {
|
||||||
|
Modes.net_sndbuf_size = atoi(argv[++j]);
|
||||||
} else if (!strcmp(argv[j],"--onlyaddr")) {
|
} else if (!strcmp(argv[j],"--onlyaddr")) {
|
||||||
Modes.onlyaddr = 1;
|
Modes.onlyaddr = 1;
|
||||||
} else if (!strcmp(argv[j],"--metric")) {
|
} else if (!strcmp(argv[j],"--metric")) {
|
||||||
|
|
BIN
dump1090.exe
BIN
dump1090.exe
Binary file not shown.
|
@ -37,7 +37,7 @@
|
||||||
// MinorVer changes when additional features are added, but not for bug fixes (range 00-99)
|
// MinorVer changes when additional features are added, but not for bug fixes (range 00-99)
|
||||||
// DayDate & Year changes for all changes, including for bug fixes. It represent the release date of the update
|
// DayDate & Year changes for all changes, including for bug fixes. It represent the release date of the update
|
||||||
//
|
//
|
||||||
#define MODES_DUMP1090_VERSION "1.08.0905.14"
|
#define MODES_DUMP1090_VERSION "1.08.2705.14"
|
||||||
|
|
||||||
// ============================= Include files ==========================
|
// ============================= Include files ==========================
|
||||||
|
|
||||||
|
@ -175,6 +175,7 @@
|
||||||
#define MODES_NET_HTTP_PORT 8080
|
#define MODES_NET_HTTP_PORT 8080
|
||||||
#define MODES_CLIENT_BUF_SIZE 1024
|
#define MODES_CLIENT_BUF_SIZE 1024
|
||||||
#define MODES_NET_SNDBUF_SIZE (1024*64)
|
#define MODES_NET_SNDBUF_SIZE (1024*64)
|
||||||
|
#define MODES_NET_SNDBUF_MAX (7)
|
||||||
|
|
||||||
#ifndef HTMLPATH
|
#ifndef HTMLPATH
|
||||||
#define HTMLPATH "./public_html" // default path for gmap.html etc
|
#define HTMLPATH "./public_html" // default path for gmap.html etc
|
||||||
|
@ -294,6 +295,7 @@ struct { // Internal state
|
||||||
int net_output_beast_port; // Beast output TCP port
|
int net_output_beast_port; // Beast output TCP port
|
||||||
int net_input_beast_port; // Beast input TCP port
|
int net_input_beast_port; // Beast input TCP port
|
||||||
int net_http_port; // HTTP port
|
int net_http_port; // HTTP port
|
||||||
|
int net_sndbuf_size; // TCP output buffer size (64Kb * 2^n)
|
||||||
int quiet; // Suppress stdout
|
int quiet; // Suppress stdout
|
||||||
int interactive; // Interactive mode
|
int interactive; // Interactive mode
|
||||||
int interactive_rows; // Interactive mode: max number of rows
|
int interactive_rows; // Interactive mode: max number of rows
|
||||||
|
|
2
net_io.c
2
net_io.c
|
@ -119,7 +119,7 @@ struct client * modesAcceptClients(void) {
|
||||||
c->fd = fd;
|
c->fd = fd;
|
||||||
c->buflen = 0;
|
c->buflen = 0;
|
||||||
Modes.clients = c;
|
Modes.clients = c;
|
||||||
anetSetSendBuffer(Modes.aneterr,fd,MODES_NET_SNDBUF_SIZE);
|
anetSetSendBuffer(Modes.aneterr,fd, (MODES_NET_SNDBUF_SIZE << Modes.net_sndbuf_size));
|
||||||
|
|
||||||
if (services[j] == Modes.sbsos) Modes.stat_sbs_connections++;
|
if (services[j] == Modes.sbsos) Modes.stat_sbs_connections++;
|
||||||
if (services[j] == Modes.ros) Modes.stat_raw_connections++;
|
if (services[j] == Modes.ros) Modes.stat_raw_connections++;
|
||||||
|
|
Loading…
Reference in a new issue