Debian Codegraph @

Contrib/NSISdl/util.h

raw
1 /*
2 ** JNetLib
3 ** Copyright (C) 2000-2001 Nullsoft, Inc.
4 ** Author: Justin Frankel
5 ** File: util.h - JNL interface for basic network utilities
6 ** License: see License.txt
7 **
8 ** routines you may be interested in:
9 ** JNL::open_socketlib();
10 ** opens the socket library. Call this once before using any network
11 ** code. If you create a new thread, call this again. Only really an
12 ** issue for Win32 support, but use it anyway for portability/
13 **
14 ** JNL::close_Socketlib();
15 ** closes the socketlib. Call this when you're done with the network,
16 ** after all your JNetLib objects have been destroyed.
17 **
18 ** unsigned long JNL::ipstr_to_addr(const char *cp);
19 ** gives you the integer representation of a ip address in dotted
20 ** decimal form.
21 **
22 ** JNL::addr_to_ipstr(unsigned long addr, char *host, int maxhostlen);
23 ** gives you the dotted decimal notation of an integer ip address.
24 **
25 ** Reviewed for Unicode support by Jim Park -- 08/24/2007
26 ** Keep the functions here strictly ANSI.
27 */
28
29 #ifndef _UTIL_H_
30 #define _UTIL_H_
31
32 int my_atoi(char *p);
33 __int64 myatoi64(const char *s);
34 void myitoa64(__int64 i, char *buffer);
35 void mini_memset(void *,char,int);
36 void mini_memcpy(void *,void*,int);
37
38 #endif //_UTIL_H_