BUGFIX : Windows version HTML Web browser support
Allow connection of a web browser to the Windows version via http://127.0.0.1:8080
This commit is contained in:
parent
d200099244
commit
a55b9a76b5
Binary file not shown.
Binary file not shown.
BIN
dump1090-win.1.08.0905.14.zip
Normal file
BIN
dump1090-win.1.08.0905.14.zip
Normal file
Binary file not shown.
1
dump1090.bat
Normal file
1
dump1090.bat
Normal file
|
@ -0,0 +1 @@
|
||||||
|
dump1090.exe --interactive --net --net-ro-port 30002 --net-beast --mlat
|
|
@ -51,7 +51,7 @@ BSC32=bscmake.exe
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||||
# ADD LINK32 ws2_32.lib /nologo /subsystem:console /machine:I386
|
# ADD LINK32 ws2_32.lib /nologo /subsystem:console /machine:I386 /out:"./dump1090.exe"
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "dump1090 - Win32 Debug"
|
!ELSEIF "$(CFG)" == "dump1090 - Win32 Debug"
|
||||||
|
|
||||||
|
|
BIN
dump1090.exe
Normal file
BIN
dump1090.exe
Normal file
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.2504.14"
|
#define MODES_DUMP1090_VERSION "1.08.0905.14"
|
||||||
|
|
||||||
// ============================= Include files ==========================
|
// ============================= Include files ==========================
|
||||||
|
|
||||||
|
|
9
net_io.c
9
net_io.c
|
@ -721,12 +721,7 @@ int handleHTTPRequest(struct client *c, char *p) {
|
||||||
|
|
||||||
if (stat(getFile, &sbuf) != -1 && (fd = open(getFile, O_RDONLY)) != -1) {
|
if (stat(getFile, &sbuf) != -1 && (fd = open(getFile, O_RDONLY)) != -1) {
|
||||||
content = (char *) malloc(sbuf.st_size);
|
content = (char *) malloc(sbuf.st_size);
|
||||||
#ifndef _WIN32
|
|
||||||
if (read(fd, content, sbuf.st_size) == -1) {
|
if (read(fd, content, sbuf.st_size) == -1) {
|
||||||
#else
|
|
||||||
if (recv(fd, content, sbuf.st_size, 0) == -1) {
|
|
||||||
errno = WSAGetLastError();
|
|
||||||
#endif
|
|
||||||
snprintf(content, sbuf.st_size, "Error reading from file: %s", strerror(errno));
|
snprintf(content, sbuf.st_size, "Error reading from file: %s", strerror(errno));
|
||||||
}
|
}
|
||||||
clen = sbuf.st_size;
|
clen = sbuf.st_size;
|
||||||
|
@ -832,7 +827,11 @@ void modesReadFromClient(struct client *c, char *sep,
|
||||||
if (nread != left) {
|
if (nread != left) {
|
||||||
bContinue = 0;
|
bContinue = 0;
|
||||||
}
|
}
|
||||||
|
#ifndef _WIN32
|
||||||
if ( (nread < 0) && (errno != EAGAIN)) { // Error, or end of file
|
if ( (nread < 0) && (errno != EAGAIN)) { // Error, or end of file
|
||||||
|
#else
|
||||||
|
if ( (nread < 0) && (errno != EWOULDBLOCK)) { // Error, or end of file
|
||||||
|
#endif
|
||||||
modesFreeClient(c);
|
modesFreeClient(c);
|
||||||
}
|
}
|
||||||
if (nread <= 0) {
|
if (nread <= 0) {
|
||||||
|
|
|
@ -101,6 +101,7 @@ _inline int gettimeofday(struct timeval *tv, struct timezone *tz) {
|
||||||
|
|
||||||
#define STDIN_FILENO 0
|
#define STDIN_FILENO 0
|
||||||
#define EINPROGRESS WSAEINPROGRESS
|
#define EINPROGRESS WSAEINPROGRESS
|
||||||
|
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue