forked from etr/libhttpserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.json
More file actions
1 lines (1 loc) · 61.3 KB
/
Copy pathparams.json
File metadata and controls
1 lines (1 loc) · 61.3 KB
1
{"name":"Libhttpserver","tagline":"C++ library for creating an embedded Rest HTTP server (and more)","body":"<!---\r\nCopyright (C) 2014 Sebastiano Merlino.\r\n Permission is granted to copy, distribute and/or modify this document\r\n under the terms of the GNU Free Documentation License, Version 1.3\r\n or any later version published by the Free Software Foundation;\r\n with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.\r\n A copy of the license is included in the section entitled \"GNU\r\n Free Documentation License\".\r\n-->\r\n\r\nThe libhttpserver (0.7.2) reference manual\r\n==========================================\r\n\r\n[](https://travis-ci.org/etr/libhttpserver)\r\n\r\nThis library has been originally developed under the zencoders flags and this community has always supported me all along this work so I am happy to put the logo on this readme.\r\n\r\n When you see this tree, know that you've came across ZenCoders.org\r\n \r\n with open('ZenCoders. \r\n `num` in numbers synchronized \r\n datetime d glob. sys.argv[2] . \r\n def myclass `..` @@oscla org. . class { \r\n displ hooks( public static void ma functor: \r\n $myclass->method( impport sys, os.pipe ` @param name` \r\n fcl if(system(cmd) myc. /de ` $card( array(\"a\" srand \r\n format lists: ++: conc ++ \"my an WHERE for( == myi \r\n `sys: myvalue(myvalue) sys.t Console.W try{ rais using \r\n connec SELECT * FROM table mycnf acco desc and or selector::clas at \r\n openldap string sys. print \"zenc der \" { 'a': `ls -l` > appe &firs \r\n import Tkinter paste( $obh &a or it myval bro roll: :: [] require a \r\n case `` super. +y <svg x=\"100\"> expr say \" %rooms 1 --account fb- yy \r\n proc meth Animate => send(D, open) putd EndIf 10 whi myc` cont \r\n and main (--) import loop $$ or end onload UNION WITH tab timer 150 *2 \r\n end. begin True GtkLabel *label doto partition te let auto i<- (i + d ); \r\n .mushup ``/. ^/zenc/ myclass->her flv op <> element >> 71 or \r\n QFileDi : and .. with myc toA channel::bo myc isEmpty a not bodt;\r\n class T public pol str mycalc d pt &&a *i fc add ^ac\r\n ::ZenCoders::core::namespac boost::function st f = std: ;; int assert\r\n cout << endl public genera #include \"b ost ::ac myna const cast<char*> mys\r\n ac size_t return ran int (*getNextValue)(void) ff double sa_family_t famil\r\n pu a do puts(\" ac int main(int argc, char* \"%5d struct nam\r\n cs float for typedef enum puts getchar() \r\n if( else #define fp FILE* f char* s \r\n i++ strcat( %s int \r\n 31] total+= do \r\n }do while(1) sle \r\n getc strcpy( a for \r\n prin scanf(%d, & get \r\n int void myfunc(int pa retu \r\n BEQ BNEQZ R1 10 ANDI R1 R2 SYS \r\n XOR SYSCALL 5 SLTIU MFLO 15 SW JAL \r\n BNE BLTZAL R1 1 LUI 001 NOOP MULTU SLLV \r\n MOV R1 ADD R1 R2 JUMP 10 1001 BEQ R1 R2 1 ANDI \r\n 1101 1010001100 111 001 01 1010 101100 1001 100 \r\n 110110 100 0 01 101 01100 100 100 1000100011 \r\n 11101001001 00 11 100 11 10100010 \r\n 000101001001 10 1001 101000101 \r\n 010010010010110101001010\r\n\r\nFor further information:\r\nvisit our website www.zencoders.org\r\n\r\nAuthor: Sebastiano Merlino\r\n\r\nCopying\r\n=======\r\nThis manual is for libhttpserver, C++ library for creating an\r\nembedded Rest HTTP server (and more).\r\n\r\n> Permission is granted to copy, distribute and/or modify this document\r\n> under the terms of the GNU Free Documentation License, Version 1.3\r\n> or any later version published by the Free Software Foundation;\r\n> with no Invariant Sections, no Front-Cover Texts, and no Back-Cover\r\n> Texts. A copy of the license is included in the section entitled GNU\r\n> Free Documentation License.\r\n\r\nContents\r\n========\r\n* Introduction.\r\n* Requirements.\r\n* Compilation.\r\n* Constants.\r\n* Structures and classes type definition.\r\n* Callback functions definition.\r\n* Create and work with server.\r\n* Registering resources.\r\n* Building responses to requests.\r\n* Whitelists and Blacklists.\r\n* Simple comet semantics.\r\n* Utilizing Authentication.\r\n* Obtaining and modifying status information.\r\n\r\nAppendices\r\n----------\r\n* GNU-LGPL: The GNU Lesser General Public License says how you can copy and share almost all of libhttpserver.\r\n* GNU-FDL: The GNU Free Documentation License says how you can copy and share the documentation of libhttpserver.\r\n\r\nIntroduction\r\n============\r\nlibhttpserver is meant to constitute an easy system to build HTTP\r\nservers with REST fashion.\r\nlibhttpserver is based on libmicrohttpd and, like this, it is a\r\ndaemon library.\r\nThe mission of this library is to support all possible HTTP features\r\ndirectly and with a simple semantic allowing then the user to concentrate\r\nonly on his application and not on HTTP request handling details.\r\n\r\nThe library is supposed to work transparently for the client Implementing\r\nthe business logic and using the library itself to realize an interface.\r\nIf the user wants it must be able to change every behavior of the library\r\nitself through the registration of callbacks.\r\n\r\nLike the api is based on (libmicrohttpd), libhttpserver is able to decode\r\ncertain body format a and automatically format them in object oriented\r\nfashion. This is true for query arguments and for *POST* and *PUT*\r\nrequests bodies if *application/x-www-form-urlencoded* or\r\n*multipart/form-data* header are passed.\r\n\r\nThe header reproduce all the constants defined by libhttpserver.\r\nThese maps various constant used by the HTTP protocol that are exported\r\nas a convenience for users of the library. Is is possible for the user\r\nto define their own extensions of the HTTP standard and use those with\r\nlibhttpserver.\r\n\r\nAll functions are guaranteed to be completely reentrant and\r\nthread-safe (unless differently specified).\r\nAdditionally, clients can specify resource limits on the overall\r\nnumber of connections, number of connections per IP address and memory\r\nused per connection to avoid resource exhaustion.\r\n\r\nRequirements\r\n============\r\n* g++ >= 4.1.2\r\n* libmicrohttpd >= 0.9.7\r\n* doxygen (if you want to build code reference)\r\n\r\nCompilation\r\n===========\r\nlibhttpserver uses the standard system where the usual build process\r\ninvolves running\r\n> ./bootstrap \r\n> mkdir build \r\n> cd build \r\n> ../configure \r\n> make \r\n> make install \r\n\r\nOptional parameters to configure script\r\n---------------------------------------\r\nA complete list of parameters can be obtained running 'configure --help'.\r\nHere are listed the libhttpserver specific options (the canonical configure options are also supported).\r\n\r\n* --enable-same-directory-build: enable to compile in the same directory. This is heavily discouraged. (def=no)\r\n* --enable-debug: enable debug data generation (def=no)\r\n* --enable-cpp11: enable c++11 std classes (def=no)\r\n* --disable-doxygen-doc: don't generate any doxygen documentation\r\n* --disable-doxygen-dot: don't generate graphics for doxygen documentation\r\n* --disable-doxygen-man: don't generate doxygen manual pages\r\n* --enable-doxygen-rtf: generate doxygen RTF documentation\r\n* --enable-doxygen-xml: generate doxygen XML documentation\r\n* --enable-doxygen-chm: generate doxygen compressed HTML help documentation\r\n* --enable-doxygen-chi: generate doxygen seperate compressed HTML help index file\r\n* --disable-doxygen-html: don't generate doxygen plain HTML documentation\r\n* --enable-doxygen-ps: generate doxygen PostScript documentation\r\n* --enable-doxygen-pdf: generate doxygen PDF documentation\r\n\r\nConstants\r\n=========\r\nW.I.P.\r\n\r\nStructures and classes type definition\r\n======================================\r\n* http_resource (CPP class): Represents the resource associated with a specific http endpoint.\r\n* http_request (CPP class): Represents the request received by the resource that process it.\r\n* http_response (CPP class): Represents the response sent by the server once the resource finished its work.\r\n* event_supplier (CPP class): Represents a class that supplies events to the webserver. It can be used to trigger the internal select of it.\r\n* webserver (CPP class): Represents the daemon listening on a socket for HTTP traffic.\r\n\r\nGNU Lesser General Public License\r\n=================================\r\n\r\nVersion 2.1, February 1999\r\n\r\nCopyright © 1991, 1999 Free Software Foundation, Inc.\r\n51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r\nEveryone is permitted to copy and distribute verbatim copies\r\nof this license document, but changing it is not allowed.\r\n\r\n_This is the first released version of the Lesser GPL. It also counts\r\nas the successor of the GNU Library Public License, version 2, hence\r\nthe version number 2.1._\r\n\r\n### Preamble\r\n\r\nThe licenses for most software are designed to take away your\r\nfreedom to share and change it. By contrast, the GNU General Public\r\nLicenses are intended to guarantee your freedom to share and change\r\nfree software--to make sure the software is free for all its users.\r\n\r\nThis license, the Lesser General Public License, applies to some\r\nspecially designated software packages--typically libraries--of the\r\nFree Software Foundation and other authors who decide to use it. You\r\ncan use it too, but we suggest you first think carefully about whether\r\nthis license or the ordinary General Public License is the better\r\nstrategy to use in any particular case, based on the explanations below.\r\n\r\nWhen we speak of free software, we are referring to freedom of use,\r\nnot price. Our General Public Licenses are designed to make sure that\r\nyou have the freedom to distribute copies of free software (and charge\r\nfor this service if you wish); that you receive source code or can get\r\nit if you want it; that you can change the software and use pieces of\r\nit in new free programs; and that you are informed that you can do\r\nthese things.\r\n\r\nTo protect your rights, we need to make restrictions that forbid\r\ndistributors to deny you these rights or to ask you to surrender these\r\nrights. These restrictions translate to certain responsibilities for\r\nyou if you distribute copies of the library or if you modify it.\r\n\r\nFor example, if you distribute copies of the library, whether gratis\r\nor for a fee, you must give the recipients all the rights that we gave\r\nyou. You must make sure that they, too, receive or can get the source\r\ncode. If you link other code with the library, you must provide\r\ncomplete object files to the recipients, so that they can relink them\r\nwith the library after making changes to the library and recompiling\r\nit. And you must show them these terms so they know their rights.\r\n\r\nWe protect your rights with a two-step method: (1) we copyright the\r\nlibrary, and (2) we offer you this license, which gives you legal\r\npermission to copy, distribute and/or modify the library.\r\n\r\nTo protect each distributor, we want to make it very clear that\r\nthere is no warranty for the free library. Also, if the library is\r\nmodified by someone else and passed on, the recipients should know\r\nthat what they have is not the original version, so that the original\r\nauthor's reputation will not be affected by problems that might be\r\nintroduced by others.\r\n\r\nFinally, software patents pose a constant threat to the existence of\r\nany free program. We wish to make sure that a company cannot\r\neffectively restrict the users of a free program by obtaining a\r\nrestrictive license from a patent holder. Therefore, we insist that\r\nany patent license obtained for a version of the library must be\r\nconsistent with the full freedom of use specified in this license.\r\n\r\nMost GNU software, including some libraries, is covered by the\r\nordinary GNU General Public License. This license, the GNU Lesser\r\nGeneral Public License, applies to certain designated libraries, and\r\nis quite different from the ordinary General Public License. We use\r\nthis license for certain libraries in order to permit linking those\r\nlibraries into non-free programs.\r\n\r\nWhen a program is linked with a library, whether statically or using\r\na shared library, the combination of the two is legally speaking a\r\ncombined work, a derivative of the original library. The ordinary\r\nGeneral Public License therefore permits such linking only if the\r\nentire combination fits its criteria of freedom. The Lesser General\r\nPublic License permits more lax criteria for linking other code with\r\nthe library.\r\n\r\nWe call this license the “Lesser” General Public License because it\r\ndoes Less to protect the user's freedom than the ordinary General\r\nPublic License. It also provides other free software developers Less\r\nof an advantage over competing non-free programs. These disadvantages\r\nare the reason we use the ordinary General Public License for many\r\nlibraries. However, the Lesser license provides advantages in certain\r\nspecial circumstances.\r\n\r\nFor example, on rare occasions, there may be a special need to\r\nencourage the widest possible use of a certain library, so that it becomes\r\na de-facto standard. To achieve this, non-free programs must be\r\nallowed to use the library. A more frequent case is that a free\r\nlibrary does the same job as widely used non-free libraries. In this\r\ncase, there is little to gain by limiting the free library to free\r\nsoftware only, so we use the Lesser General Public License.\r\n\r\nIn other cases, permission to use a particular library in non-free\r\nprograms enables a greater number of people to use a large body of\r\nfree software. For example, permission to use the GNU C Library in\r\nnon-free programs enables many more people to use the whole GNU\r\noperating system, as well as its variant, the GNU/Linux operating\r\nsystem.\r\n\r\nAlthough the Lesser General Public License is Less protective of the\r\nusers' freedom, it does ensure that the user of a program that is\r\nlinked with the Library has the freedom and the wherewithal to run\r\nthat program using a modified version of the Library.\r\n\r\nThe precise terms and conditions for copying, distribution and\r\nmodification follow. Pay close attention to the difference between a\r\n“work based on the library” and a “work that uses the library”. The\r\nformer contains code derived from the library, whereas the latter must\r\nbe combined with the library in order to run.\r\n\r\n### TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\r\n\r\n**0.** This License Agreement applies to any software library or other\r\nprogram which contains a notice placed by the copyright holder or\r\nother authorized party saying it may be distributed under the terms of\r\nthis Lesser General Public License (also called “this License”).\r\nEach licensee is addressed as “you”.\r\n\r\nA “library” means a collection of software functions and/or data\r\nprepared so as to be conveniently linked with application programs\r\n(which use some of those functions and data) to form executables.\r\n\r\nThe “Library”, below, refers to any such software library or work\r\nwhich has been distributed under these terms. A “work based on the\r\nLibrary” means either the Library or any derivative work under\r\ncopyright law: that is to say, a work containing the Library or a\r\nportion of it, either verbatim or with modifications and/or translated\r\nstraightforwardly into another language. (Hereinafter, translation is\r\nincluded without limitation in the term “modification”.)\r\n\r\n“Source code” for a work means the preferred form of the work for\r\nmaking modifications to it. For a library, complete source code means\r\nall the source code for all modules it contains, plus any associated\r\ninterface definition files, plus the scripts used to control compilation\r\nand installation of the library.\r\n\r\nActivities other than copying, distribution and modification are not\r\ncovered by this License; they are outside its scope. The act of\r\nrunning a program using the Library is not restricted, and output from\r\nsuch a program is covered only if its contents constitute a work based\r\non the Library (independent of the use of the Library in a tool for\r\nwriting it). Whether that is true depends on what the Library does\r\nand what the program that uses the Library does.\r\n\r\n**1.** You may copy and distribute verbatim copies of the Library's\r\ncomplete source code as you receive it, in any medium, provided that\r\nyou conspicuously and appropriately publish on each copy an\r\nappropriate copyright notice and disclaimer of warranty; keep intact\r\nall the notices that refer to this License and to the absence of any\r\nwarranty; and distribute a copy of this License along with the\r\nLibrary.\r\n\r\nYou may charge a fee for the physical act of transferring a copy,\r\nand you may at your option offer warranty protection in exchange for a\r\nfee.\r\n\r\n**2.** You may modify your copy or copies of the Library or any portion\r\nof it, thus forming a work based on the Library, and copy and\r\ndistribute such modifications or work under the terms of Section 1\r\nabove, provided that you also meet all of these conditions:\r\n\r\n* **a)** The modified work must itself be a software library.\r\n* **b)** You must cause the files modified to carry prominent notices\r\nstating that you changed the files and the date of any change.\r\n* **c)** You must cause the whole of the work to be licensed at no\r\ncharge to all third parties under the terms of this License.\r\n* **d)** If a facility in the modified Library refers to a function or a\r\ntable of data to be supplied by an application program that uses\r\nthe facility, other than as an argument passed when the facility\r\nis invoked, then you must make a good faith effort to ensure that,\r\nin the event an application does not supply such function or\r\ntable, the facility still operates, and performs whatever part of\r\nits purpose remains meaningful. \r\n(For example, a function in a library to compute square roots has\r\na purpose that is entirely well-defined independent of the\r\napplication. Therefore, Subsection 2d requires that any\r\napplication-supplied function or table used by this function must\r\nbe optional: if the application does not supply it, the square\r\nroot function must still compute square roots.)\r\n\r\nThese requirements apply to the modified work as a whole. If\r\nidentifiable sections of that work are not derived from the Library,\r\nand can be reasonably considered independent and separate works in\r\nthemselves, then this License, and its terms, do not apply to those\r\nsections when you distribute them as separate works. But when you\r\ndistribute the same sections as part of a whole which is a work based\r\non the Library, the distribution of the whole must be on the terms of\r\nthis License, whose permissions for other licensees extend to the\r\nentire whole, and thus to each and every part regardless of who wrote\r\nit.\r\n\r\nThus, it is not the intent of this section to claim rights or contest\r\nyour rights to work written entirely by you; rather, the intent is to\r\nexercise the right to control the distribution of derivative or\r\ncollective works based on the Library.\r\n\r\nIn addition, mere aggregation of another work not based on the Library\r\nwith the Library (or with a work based on the Library) on a volume of\r\na storage or distribution medium does not bring the other work under\r\nthe scope of this License.\r\n\r\n**3.** You may opt to apply the terms of the ordinary GNU General Public\r\nLicense instead of this License to a given copy of the Library. To do\r\nthis, you must alter all the notices that refer to this License, so\r\nthat they refer to the ordinary GNU General Public License, version 2,\r\ninstead of to this License. (If a newer version than version 2 of the\r\nordinary GNU General Public License has appeared, then you can specify\r\nthat version instead if you wish.) Do not make any other change in\r\nthese notices.\r\n\r\nOnce this change is made in a given copy, it is irreversible for\r\nthat copy, so the ordinary GNU General Public License applies to all\r\nsubsequent copies and derivative works made from that copy.\r\n\r\nThis option is useful when you wish to copy part of the code of\r\nthe Library into a program that is not a library.\r\n\r\n**4.** You may copy and distribute the Library (or a portion or\r\nderivative of it, under Section 2) in object code or executable form\r\nunder the terms of Sections 1 and 2 above provided that you accompany\r\nit with the complete corresponding machine-readable source code, which\r\nmust be distributed under the terms of Sections 1 and 2 above on a\r\nmedium customarily used for software interchange.\r\n\r\nIf distribution of object code is made by offering access to copy\r\nfrom a designated place, then offering equivalent access to copy the\r\nsource code from the same place satisfies the requirement to\r\ndistribute the source code, even though third parties are not\r\ncompelled to copy the source along with the object code.\r\n\r\n**5.** A program that contains no derivative of any portion of the\r\nLibrary, but is designed to work with the Library by being compiled or\r\nlinked with it, is called a “work that uses the Library”. Such a\r\nwork, in isolation, is not a derivative work of the Library, and\r\ntherefore falls outside the scope of this License.\r\n\r\nHowever, linking a “work that uses the Library” with the Library\r\ncreates an executable that is a derivative of the Library (because it\r\ncontains portions of the Library), rather than a “work that uses the\r\nlibrary”. The executable is therefore covered by this License.\r\nSection 6 states terms for distribution of such executables.\r\n\r\nWhen a “work that uses the Library” uses material from a header file\r\nthat is part of the Library, the object code for the work may be a\r\nderivative work of the Library even though the source code is not.\r\nWhether this is true is especially significant if the work can be\r\nlinked without the Library, or if the work is itself a library. The\r\nthreshold for this to be true is not precisely defined by law.\r\n\r\nIf such an object file uses only numerical parameters, data\r\nstructure layouts and accessors, and small macros and small inline\r\nfunctions (ten lines or less in length), then the use of the object\r\nfile is unrestricted, regardless of whether it is legally a derivative\r\nwork. (Executables containing this object code plus portions of the\r\nLibrary will still fall under Section 6.)\r\n\r\nOtherwise, if the work is a derivative of the Library, you may\r\ndistribute the object code for the work under the terms of Section 6.\r\nAny executables containing that work also fall under Section 6,\r\nwhether or not they are linked directly with the Library itself.\r\n\r\n**6.** As an exception to the Sections above, you may also combine or\r\nlink a “work that uses the Library” with the Library to produce a\r\nwork containing portions of the Library, and distribute that work\r\nunder terms of your choice, provided that the terms permit\r\nmodification of the work for the customer's own use and reverse\r\nengineering for debugging such modifications.\r\n\r\nYou must give prominent notice with each copy of the work that the\r\nLibrary is used in it and that the Library and its use are covered by\r\nthis License. You must supply a copy of this License. If the work\r\nduring execution displays copyright notices, you must include the\r\ncopyright notice for the Library among them, as well as a reference\r\ndirecting the user to the copy of this License. Also, you must do one\r\nof these things:\r\n\r\n* **a)** Accompany the work with the complete corresponding\r\nmachine-readable source code for the Library including whatever\r\nchanges were used in the work (which must be distributed under\r\nSections 1 and 2 above); and, if the work is an executable linked\r\nwith the Library, with the complete machine-readable “work that\r\nuses the Library”, as object code and/or source code, so that the\r\nuser can modify the Library and then relink to produce a modified\r\nexecutable containing the modified Library. (It is understood\r\nthat the user who changes the contents of definitions files in the\r\nLibrary will not necessarily be able to recompile the application\r\nto use the modified definitions.)\r\n* **b)** Use a suitable shared library mechanism for linking with the\r\nLibrary. A suitable mechanism is one that (1) uses at run time a\r\ncopy of the library already present on the user's computer system,\r\nrather than copying library functions into the executable, and (2)\r\nwill operate properly with a modified version of the library, if\r\nthe user installs one, as long as the modified version is\r\ninterface-compatible with the version that the work was made with.\r\n* **c)** Accompany the work with a written offer, valid for at\r\nleast three years, to give the same user the materials\r\nspecified in Subsection 6a, above, for a charge no more\r\nthan the cost of performing this distribution.\r\n* **d)** If distribution of the work is made by offering access to copy\r\nfrom a designated place, offer equivalent access to copy the above\r\nspecified materials from the same place.\r\n* **e)** Verify that the user has already received a copy of these\r\nmaterials or that you have already sent this user a copy.\r\n\r\nFor an executable, the required form of the “work that uses the\r\nLibrary” must include any data and utility programs needed for\r\nreproducing the executable from it. However, as a special exception,\r\nthe materials to be distributed need not include anything that is\r\nnormally distributed (in either source or binary form) with the major\r\ncomponents (compiler, kernel, and so on) of the operating system on\r\nwhich the executable runs, unless that component itself accompanies\r\nthe executable.\r\n\r\nIt may happen that this requirement contradicts the license\r\nrestrictions of other proprietary libraries that do not normally\r\naccompany the operating system. Such a contradiction means you cannot\r\nuse both them and the Library together in an executable that you\r\ndistribute.\r\n\r\n**7.** You may place library facilities that are a work based on the\r\nLibrary side-by-side in a single library together with other library\r\nfacilities not covered by this License, and distribute such a combined\r\nlibrary, provided that the separate distribution of the work based on\r\nthe Library and of the other library facilities is otherwise\r\npermitted, and provided that you do these two things:\r\n\r\n* **a)** Accompany the combined library with a copy of the same work\r\nbased on the Library, uncombined with any other library\r\nfacilities. This must be distributed under the terms of the\r\nSections above.\r\n* **b)** Give prominent notice with the combined library of the fact\r\nthat part of it is a work based on the Library, and explaining\r\nwhere to find the accompanying uncombined form of the same work.\r\n\r\n**8.** You may not copy, modify, sublicense, link with, or distribute\r\nthe Library except as expressly provided under this License. Any\r\nattempt otherwise to copy, modify, sublicense, link with, or\r\ndistribute the Library is void, and will automatically terminate your\r\nrights under this License. However, parties who have received copies,\r\nor rights, from you under this License will not have their licenses\r\nterminated so long as such parties remain in full compliance.\r\n\r\n**9.** You are not required to accept this License, since you have not\r\nsigned it. However, nothing else grants you permission to modify or\r\ndistribute the Library or its derivative works. These actions are\r\nprohibited by law if you do not accept this License. Therefore, by\r\nmodifying or distributing the Library (or any work based on the\r\nLibrary), you indicate your acceptance of this License to do so, and\r\nall its terms and conditions for copying, distributing or modifying\r\nthe Library or works based on it.\r\n\r\n**10.** Each time you redistribute the Library (or any work based on the\r\nLibrary), the recipient automatically receives a license from the\r\noriginal licensor to copy, distribute, link with or modify the Library\r\nsubject to these terms and conditions. You may not impose any further\r\nrestrictions on the recipients' exercise of the rights granted herein.\r\nYou are not responsible for enforcing compliance by third parties with\r\nthis License.\r\n\r\n**11.** If, as a consequence of a court judgment or allegation of patent\r\ninfringement or for any other reason (not limited to patent issues),\r\nconditions are imposed on you (whether by court order, agreement or\r\notherwise) that contradict the conditions of this License, they do not\r\nexcuse you from the conditions of this License. If you cannot\r\ndistribute so as to satisfy simultaneously your obligations under this\r\nLicense and any other pertinent obligations, then as a consequence you\r\nmay not distribute the Library at all. For example, if a patent\r\nlicense would not permit royalty-free redistribution of the Library by\r\nall those who receive copies directly or indirectly through you, then\r\nthe only way you could satisfy both it and this License would be to\r\nrefrain entirely from distribution of the Library.\r\n\r\nIf any portion of this section is held invalid or unenforceable under any\r\nparticular circumstance, the balance of the section is intended to apply,\r\nand the section as a whole is intended to apply in other circumstances.\r\n\r\nIt is not the purpose of this section to induce you to infringe any\r\npatents or other property right claims or to contest validity of any\r\nsuch claims; this section has the sole purpose of protecting the\r\nintegrity of the free software distribution system which is\r\nimplemented by public license practices. Many people have made\r\ngenerous contributions to the wide range of software distributed\r\nthrough that system in reliance on consistent application of that\r\nsystem; it is up to the author/donor to decide if he or she is willing\r\nto distribute software through any other system and a licensee cannot\r\nimpose that choice.\r\n\r\nThis section is intended to make thoroughly clear what is believed to\r\nbe a consequence of the rest of this License.\r\n\r\n**12.** If the distribution and/or use of the Library is restricted in\r\ncertain countries either by patents or by copyrighted interfaces, the\r\noriginal copyright holder who places the Library under this License may add\r\nan explicit geographical distribution limitation excluding those countries,\r\nso that distribution is permitted only in or among countries not thus\r\nexcluded. In such case, this License incorporates the limitation as if\r\nwritten in the body of this License.\r\n\r\n**13.** The Free Software Foundation may publish revised and/or new\r\nversions of the Lesser General Public License from time to time.\r\nSuch new versions will be similar in spirit to the present version,\r\nbut may differ in detail to address new problems or concerns.\r\n\r\nEach version is given a distinguishing version number. If the Library\r\nspecifies a version number of this License which applies to it and\r\n“any later version”, you have the option of following the terms and\r\nconditions either of that version or of any later version published by\r\nthe Free Software Foundation. If the Library does not specify a\r\nlicense version number, you may choose any version ever published by\r\nthe Free Software Foundation.\r\n\r\n**14.** If you wish to incorporate parts of the Library into other free\r\nprograms whose distribution conditions are incompatible with these,\r\nwrite to the author to ask for permission. For software which is\r\ncopyrighted by the Free Software Foundation, write to the Free\r\nSoftware Foundation; we sometimes make exceptions for this. Our\r\ndecision will be guided by the two goals of preserving the free status\r\nof all derivatives of our free software and of promoting the sharing\r\nand reuse of software generally.\r\n\r\n### NO WARRANTY\r\n\r\n**15.** BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO\r\nWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.\r\nEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR\r\nOTHER PARTIES PROVIDE THE LIBRARY “AS IS” WITHOUT WARRANTY OF ANY\r\nKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE\r\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE\r\nLIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME\r\nTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\r\n\r\n**16.** IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN\r\nWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY\r\nAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU\r\nFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR\r\nCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE\r\nLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING\r\nRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A\r\nFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF\r\nSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH\r\nDAMAGES.\r\n\r\nEND OF TERMS AND CONDITIONS\r\n\r\n### How to Apply These Terms to Your New Libraries\r\n\r\nIf you develop a new library, and you want it to be of the greatest\r\npossible use to the public, we recommend making it free software that\r\neveryone can redistribute and change. You can do so by permitting\r\nredistribution under these terms (or, alternatively, under the terms of the\r\nordinary General Public License).\r\n\r\nTo apply these terms, attach the following notices to the library. It is\r\nsafest to attach them to the start of each source file to most effectively\r\nconvey the exclusion of warranty; and each file should have at least the\r\n“copyright” line and a pointer to where the full notice is found.\r\n\r\n <one line to give the library's name and a brief idea of what it does.>\r\n Copyright (C) <year> <name of author>\r\n\r\n This library is free software; you can redistribute it and/or\r\n modify it under the terms of the GNU Lesser General Public\r\n License as published by the Free Software Foundation; either\r\n version 2.1 of the License, or (at your option) any later version.\r\n\r\n This library is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r\n Lesser General Public License for more details.\r\n\r\n You should have received a copy of the GNU Lesser General Public\r\n License along with this library; if not, write to the Free Software\r\n Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r\n\r\nAlso add information on how to contact you by electronic and paper mail.\r\n\r\nYou should also get your employer (if you work as a programmer) or your\r\nschool, if any, to sign a “copyright disclaimer” for the library, if\r\nnecessary. Here is a sample; alter the names:\r\n\r\n Yoyodyne, Inc., hereby disclaims all copyright interest in the\r\n library `Frob' (a library for tweaking knobs) written by James Random Hacker.\r\n\r\n <signature of Ty Coon>, 1 April 1990\r\