⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 本人收集整理的一份c/c++跨平台网络库
💻
字号:
----------------------------------------PLAIN INSTALL----------------------------------------EXPORT CFLAGS='your optimization flags'   gcc defaults to "-O2 -g"  you probably want "-O3 -Wall"./configuremakemake testmake install   will produce a shared and static library and put in the right places.   it will also install the include files.----------------------------------------CHANGING THE b64 web/url SAFE ALPHABET----------------------------------------If you are using base 64 encoding for use IN A URL, youCAN NOT use the standard mod_b64.  You MUST use modp_b64w(the w is for "web").  Unfortunately this is not standardizedand if you are working with a third party, you might need tochange the "alphabet" (chars).  You can change char 62,63 and the padding char with./configure --with-b64wchars='-_.'where "-" is char 62, "_" is char 63 and "." is the padding char.You can change this if you know what you are doing.----------------------------------------IF YOU DON'T WANT TO DEAL WITH A LIBRARY----------------------------------------Base64 and base85 functions are so small, you might just want todirectly add them into your existing project.  That's fine, it's allunder the BSD license, so go ahead.For b64:--------After doing a "./configure && make", copy * src/modp_b64.c * src/modp_b64.h * modp_b64_data.h***** BUT, there is an IMPORTANT GOTCHA! *****This code has special versions that are -endian- dependant.  Thismeans different code is used on an Intel CPU than it is on a Motorola,IBM, or Sun CPU. **** IF you are using autoconf, just add AC_C_BIGENDIAN to yourconfigure.in script and everything will work.**** IF NOT, edit modp_b64.c, and replace the #include "config.h"with#define WORDS_BIGENDIAN  /* for Sun, Ibm, Motorola */  OR#undef WORDS_BIGENDIAN   /* For intel, amd */see the source code for details.  Likewise you can pass in-DWORDS_BIGENDIAN or -DNWORDS_BIGENDIAN during compilation.For b85:--------There are no endian issues.  Just copy * src/modp_b85.c * src/modp_b85.h * modp_b85_data.h----------------------------------------UNIT TESTS----------------------------------------Two unit tests are included that are not installed.  They are builtautomatically and can be run with "make test"./speedtest tests performance of b64 and b85./unittest tests correctness of b64./b85test test correectness of b75If you are changing the base64 alphabet, just edit the b64gen.c programand type 'make'.If you are changing the base85 alphabet, edit the b85gen.c program andtype 'make'.ALWAYS UNIT TEST ANY CHANGES.  The current unittests depend on thestandard alphabet, so you might need to tweek them if to make customalterations.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -