+int SockWrite(int sock, const char *buf, int size);
+
+/* from /usr/include/sys/cdefs.h */
+#if !defined __GNUC__
+# define __attribute__(xyz) /* Ignore. */
+#endif
+
+/**
+Send formatted output to the socket (matches interface of fprintf).
+Returns number of bytes successfully written.
+*/
+int SockPrintf(int sock, const char *format, ...)
+ __attribute__ ((format (printf, 2, 3)))
+ ;
+
+/**
+Close a socket previously opened by SockOpen. This allows for some
+additional clean-up if necessary.
+*/
+int SockClose(int sock);
+
+/**
+ \todo document this
+*/
+int UnixOpen(const char *path);
+
+#ifdef SSL_ENABLE
+int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck, char *cacertfile, char *cacertpath,
+ char *fingerprint, char *servercname, char *label, char **remotename);
+#endif /* SSL_ENABLE */