projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Keepalives are now in seconds not minutes
[u/mdw/putty]
/
plink.c
diff --git
a/plink.c
b/plink.c
index
2fe882f
..
16a44b3
100644
(file)
--- a/
plink.c
+++ b/
plink.c
@@
-7,6
+7,7
@@
#endif
#include <windows.h>
#include <stdio.h>
#endif
#include <windows.h>
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
#include <stdarg.h>
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
@@
-16,7
+17,7
@@
void fatalbox (char *p, ...) {
va_list ap;
void fatalbox (char *p, ...) {
va_list ap;
- fprintf(stderr, "FATAL ERROR: "
, p
);
+ fprintf(stderr, "FATAL ERROR: ");
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);
@@
-26,7
+27,7
@@
void fatalbox (char *p, ...) {
}
void connection_fatal (char *p, ...) {
va_list ap;
}
void connection_fatal (char *p, ...) {
va_list ap;
- fprintf(stderr, "FATAL ERROR: "
, p
);
+ fprintf(stderr, "FATAL ERROR: ");
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);
@@
-557,6
+558,8
@@
int main(int argc, char **argv) {
socket = sklist[i];
wp = (WPARAM)socket;
if (!WSAEnumNetworkEvents(socket, netevent, &things)) {
socket = sklist[i];
wp = (WPARAM)socket;
if (!WSAEnumNetworkEvents(socket, netevent, &things)) {
+ noise_ultralight(socket);
+ noise_ultralight(things.lNetworkEvents);
if (things.lNetworkEvents & FD_READ)
connopen &= select_result(wp, (LPARAM)FD_READ);
if (things.lNetworkEvents & FD_CLOSE)
if (things.lNetworkEvents & FD_READ)
connopen &= select_result(wp, (LPARAM)FD_READ);
if (things.lNetworkEvents & FD_CLOSE)
@@
-568,6
+571,7
@@
int main(int argc, char **argv) {
}
}
} else if (n == 1) {
}
}
} else if (n == 1) {
+ noise_ultralight(idata.len);
if (idata.len > 0) {
back->send(idata.buffer, idata.len);
} else {
if (idata.len > 0) {
back->send(idata.buffer, idata.len);
} else {