README 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Project: miniupnp
  2. Project web page: http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
  3. Author: Thomas Bernard
  4. Copyright (c) 2005-2008 Thomas Bernard
  5. This software is subject to the conditions detailed in the
  6. LICENCE file provided within this distribution.
  7. For the comfort of Win32 users, bsdqueue.h is included in the distribution.
  8. Its licence is included in the header of the file.
  9. bsdqueue.h is a copy of the sys/queue.h of an OpenBSD system.
  10. * miniupnp Client *
  11. To compile, simply run 'gmake' (could be 'make').
  12. Under win32, to compile with MinGW, type "mingw32make.bat".
  13. The compilation is known to work under linux, FreeBSD,
  14. OpenBSD, MacOS X and cygwin.
  15. To install the library and headers on the system use :
  16. > su
  17. > make install
  18. > exit
  19. alternatively, to install in a specific location, use :
  20. > INSTALLPREFIX=/usr/local make install
  21. upnpc.c is a sample client using the libminiupnpc.
  22. To use the libminiupnpc in your application, link it with
  23. libminiupnpc.a and use the following functions found in miniupnpc.h,
  24. upnpcommands.h and miniwget.h :
  25. - upnpDiscover()
  26. - miniwget()
  27. - parserootdesc()
  28. - GetUPNPUrls()
  29. - UPNP_* (calling UPNP methods)
  30. Note : use #include <miniupnpc/miniupnpc.h> etc... for the includes
  31. and -lminiupnpc for the link
  32. Discovery process is speeded up when MiniSSDPd is running on the machine.
  33. * Python module *
  34. you can build a python module with 'make pythonmodule'
  35. and install it with 'make installpythonmodule'.
  36. setup.py (and setupmingw32.py) are included in the distribution.
  37. Feel free to contact me if you have any problem :
  38. e-mail : miniupnp@free.fr
  39. If you are using libminiupnpc in your application, please
  40. send me an email !