All Projects → apache → Serf

apache / Serf

Licence: apache-2.0
Mirror of Apache Serf

Programming Languages

c
50402 projects - #5 most used programming language

Labels

Projects that are alternatives of or similar to Serf

Tabulate
Table Maker for Modern C++
Stars: ✭ 862 (+5646.67%)
Mutual labels:  library
Omgl
Pythonic OpenGL Bindings
Stars: ✭ 13 (-13.33%)
Mutual labels:  library
Candyview
Implement any RecyclerView in just 1 Line. CandyView handles everything for you.
Stars: ✭ 15 (+0%)
Mutual labels:  library
Idutf8lib
Idiot's UTF-8 Library
Stars: ✭ 12 (-20%)
Mutual labels:  library
Ikonograph
⚠️ This project is no longer mantained
Stars: ✭ 13 (-13.33%)
Mutual labels:  library
Androidlibs
🔥正在成为史上最全分类 Android 开源大全~~~~(长期更新 Star 一下吧)
Stars: ✭ 7,148 (+47553.33%)
Mutual labels:  library
Joctomap
Java/Android wrapper for Octomap: an octree-based mapping library
Stars: ✭ 11 (-26.67%)
Mutual labels:  library
Drf Tus
A Tus (tus.io) library for Django Rest Framework
Stars: ✭ 15 (+0%)
Mutual labels:  library
Printcess
Haskell pretty printing library supporting indentation, mixfix operators, and automatic line breaks.
Stars: ✭ 13 (-13.33%)
Mutual labels:  library
Vue Echarts V3
Vue.js(v2.x+) component wrap for ECharts.js(v3.x+)
Stars: ✭ 884 (+5793.33%)
Mutual labels:  library
Befa Library
High-level library for executable binary file analysis
Stars: ✭ 12 (-20%)
Mutual labels:  library
Werender
Simple, light-weight, Canvas library for 2D rendering
Stars: ✭ 13 (-13.33%)
Mutual labels:  library
Cordova Plugin Camera
Apache Cordova Plugin camera
Stars: ✭ 879 (+5760%)
Mutual labels:  library
Python Opcua
LGPL Pure Python OPC-UA Client and Server
Stars: ✭ 863 (+5653.33%)
Mutual labels:  library
Rxsociallib
分享登录工具库,简洁配置,可配合RxJava/RxJava2使用,支持QQ微信微博
Stars: ✭ 15 (+0%)
Mutual labels:  library
Gitter Api
[production-ready] Gitter API implementation for php 7.0+ allowing sync, async and streaming access.
Stars: ✭ 11 (-26.67%)
Mutual labels:  library
Timesheet.js
JavaScript library for HTML5 & CSS3 time sheets
Stars: ✭ 6,881 (+45773.33%)
Mutual labels:  library
Eglo
EGL/X11 Abstraction Library for Pocket C.H.I.P
Stars: ✭ 15 (+0%)
Mutual labels:  library
Breadcast
Small Broadcast Receiver Library for Android
Stars: ✭ 15 (+0%)
Mutual labels:  library
Polysnap
A work in progress polygon operations library with integer snap-rounding
Stars: ✭ 14 (-6.67%)
Mutual labels:  library

Welcome to Apache Serf, a high-performance asynchronous HTTP client library.

The Apache Serf library is a C-based HTTP client library built upon the Apache Portable Runtime (APR) library. It multiplexes connections, running the read/write communication asynchronously. Memory copies and transformations are kept to a minimum to provide high performance operation.


  1. INSTALL

1.1. SCons build system

Apache Serf uses SCons 2.3 for its build system. If it is not installed on your system, then you can install it onto your system. If you do not have permissions, then you can download and install the "local" version into your home directory. When installed privately, simply create a symlink for 'scons' in your PATH to /path/to/scons/scons.py.

Fetch the scons-local package: http://prdownloads.sourceforge.net/scons/scons-local-2.3.0.tar.gz

1.2 Building Apache Serf

To build serf:

$ scons APR=/path/to/apr APU=/path/to/apu OPENSSL=/openssl/base PREFIX=/path/to/prefix

The switches are recorded into .saved_config, so they only need to be specified the first time scons is run.

PREFIX should specify where serf should be installed. PREFIX defaults to /usr/local.

The default for the other three switches (APR, APU, OPENSSL) is /usr.

The build system looks for apr-1-config at $APR/bin/apr-1-config, or the path should indicate apr-1-config itself. Similarly for the path to apu-1-config.

OPENSSL should specify the root of the install (eg. /opt/local). The includes will be found OPENSSL/include and libraries at OPENSSL/lib.

If you wish to use VPATH-style builds (where objects are created in a distinct directory from the source), you can use:

$ scons -Y /path/to/serf/source

If you plan to install the library on a system that uses different paths for architecture dependent files, specify LIBDIR. LIBDIR defaults to /usr/local/lib otherwise. Example for a 64 bit GNU/Linux system:

$ scons PREFIX=/usr/ LIBDIR=/usr/lib64

At any point, the current settings can be examined:

$ scons --help

1.3 Running the test suite

$ scons check

1.4 Installing Apache Serf

$ scons install

Note that the PREFIX variable should have been specified in a previous invocation of scons (and saved into .saved_config), or it can be specified on the install command line:

$ scons PREFIX=/some/path install

Distribution package maintainers regulary install to a buildroot, and would normally use something like below in their build systems, with placeholders for the specific paths:

$ scons PREFIX=/usr/ LIBDIR=/usr/lib64 $ scons install --install-sandbox=/path/to/buildroot

1.4 Cleaning up the build

$ scons -c

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].