diff dbutil.h @ 26:0969767bca0d

snapshot of stuff
author Matt Johnston <matt@ucc.asn.au>
date Mon, 26 Jul 2004 02:44:20 +0000
parents 469950e86d0f
children c8fcd4841956
line wrap: on
line diff
--- a/dbutil.h	Tue Jul 20 12:06:37 2004 +0000
+++ b/dbutil.h	Mon Jul 26 02:44:20 2004 +0000
@@ -45,6 +45,8 @@
 #endif
 char * stripcontrol(const char * text);
 unsigned char * getaddrstring(struct sockaddr * addr);
+int connect_remote(const char* remotehost, const char* remoteport,
+		int nonblocking, char ** errstring);
 char* getaddrhostname(struct sockaddr * addr);
 int buf_readfile(buffer* buf, const char* filename);
 
@@ -56,4 +58,7 @@
 void __m_free(void* ptr);
 void m_burn(void* data, unsigned int len);
 
+/* Used to force mp_ints to be initialised */
+#define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL}
+
 #endif /* _DBUTIL_H_ */