home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / CMCD0304.ISO / Software / Freeware / Programare / nullsoft / nsis20.exe / Contrib / NSISdl / util.h < prev   
C/C++ Source or Header  |  2002-12-04  |  1KB  |  35 lines

  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 jnetlib.h
  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. */
  26.  
  27. #ifndef _UTIL_H_
  28. #define _UTIL_H_
  29.  
  30. int my_atoi(char *p);
  31. void mini_memset(void *,char,int);
  32. void mini_memcpy(void *,void*,int);
  33.  
  34. #endif //_UTIL_H_
  35.