~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Flush the log file after logging each packet (so that if we're going
[sgt/putty]
/
network.h
diff --git
a/network.h
b/network.h
index
4b7808a
..
3ec9eb7
100644
(file)
--- a/
network.h
+++ b/
network.h
@@
-64,10
+64,11
@@
struct plug_function_table {
void sk_init(void); /* called once at program startup */
SockAddr sk_namelookup(char *host, char **canonicalname);
void sk_init(void); /* called once at program startup */
SockAddr sk_namelookup(char *host, char **canonicalname);
+void sk_getaddr(SockAddr addr, char *buf, int buflen);
void sk_addr_free(SockAddr addr);
Socket sk_new(SockAddr addr, int port, int privport, int oobinline,
void sk_addr_free(SockAddr addr);
Socket sk_new(SockAddr addr, int port, int privport, int oobinline,
- Plug p);
+
int nodelay,
Plug p);
Socket sk_newlistener(int port, Plug plug, int local_host_only);
Socket sk_newlistener(int port, Plug plug, int local_host_only);
@@
-123,6
+124,12
@@
char *sk_addr_error(SockAddr addr);
*/
void sk_set_frozen(Socket sock, int is_frozen);
*/
void sk_set_frozen(Socket sock, int is_frozen);
+/*
+ * Call this after an operation that might have tried to send on a
+ * socket, to clean up any pending network errors.
+ */
+void net_pending_errors(void);
+
/********** SSL stuff **********/
/*
/********** SSL stuff **********/
/*