From a9c38fb37f5fc8796435c2bcbcdecf35cf802ca6 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 26 Jul 2004 02:44:20 +0000 Subject: snapshot of stuff --HG-- extra : convert_revision : 2903853ba24669d01547710986ad531357602633 --- dbutil.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dbutil.h') diff --git a/dbutil.h b/dbutil.h index 3da6b2f..49b7466 100644 --- a/dbutil.h +++ b/dbutil.h @@ -45,6 +45,8 @@ void printhex(unsigned char* buf, int len); #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_realloc(void* ptr, size_t size); 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_ */ -- cgit v1.2.3