]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - unix/uxnet.c
Implement connection sharing between instances of PuTTY.
[PuTTY_svn.git] / unix / uxnet.c
index 3ceb985854f177e940ec58ce683c64dca2675b96..868f9d0a3153f2ca1d5245ff189d61daea7bfe70 100644 (file)
@@ -337,6 +337,15 @@ void sk_getaddr(SockAddr addr, char *buf, int buflen)
     }
 }
 
+int sk_addr_needs_port(SockAddr addr)
+{
+    if (addr->superfamily == UNRESOLVED || addr->superfamily == UNIX) {
+        return FALSE;
+    } else {
+        return TRUE;
+    }
+}
+
 int sk_hostname_is_local(const char *name)
 {
     return !strcmp(name, "localhost") ||