Ensure we ignore a hostname in Default Settings, if a perverse user
[sgt/putty] / network.h
index 4b7808a..28744a6 100644 (file)
--- a/network.h
+++ b/network.h
@@ -64,6 +64,7 @@ struct plug_function_table {
 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,
@@ -123,6 +124,12 @@ char *sk_addr_error(SockAddr addr);
  */
 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 **********/
 
 /*