Provide lcb_cntl interface

Change-Id: I33111a456d9eda0f7f71e944398302af7f864e5d
Reviewed-on: http://review.couchbase.org/27661
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Convert cbc(1) and cbcrc(4) manpages to asciidoc

Change-Id: Ic5ab411ffdfe4163123c27fe09f2bb39176776c7
Reviewed-on: http://review.couchbase.org/27843
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Mention environment variables in libcouchbase(3) page

It is quite important feature to duplicate in both libcouchbase(3) and
cbc(1) man pages

Change-Id: Icc3973a148a4354604e226732771fd6fc044338f
Reviewed-on: http://review.couchbase.org/27844
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Add more markup visible for HTML

Change-Id: Ied8f04d166fbd26e00e72a22bd29ff39a8556087
Reviewed-on: http://review.couchbase.org/27850
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix include directives in manpages

Use <libcouchbase/couchbase.h> instead of <libcouchbase.h>

Change-Id: I4284820f2ab1b75283d19cf44b95605ea6e188c2
Reviewed-on: http://review.couchbase.org/27851
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Append Couchbase CSS to HTML documentation

Change-Id: Id6f8c156bc7cca43cbf969cf492cd4dd547cfeaf
Reviewed-on: http://review.couchbase.org/27861
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Add more links to manpages

Change-Id: If3921930056c0e30c8fc4c556656209b4c5cf1fd
Reviewed-on: http://review.couchbase.org/27860
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Various fixes for NMakefile

- Include 'win32' before the normal 'include'
- Remove deleted files (behavior.c)
- Add new files (genhash.c, hashtable.c)

Change-Id: I2220fe7875ae5cd1ddd064dea3fba6be7b43980e
Reviewed-on: http://review.couchbase.org/27878
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Add VERSION to dist

Change-Id: I188c1394e7653d29f710b6303bf32c66a5f62774
Reviewed-on: http://review.couchbase.org/27902
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Improvements for CMakeLists

- Allow some variables at the top
- Trim long lines
- Provided proper install directory (similar to our zip dists)
- Prefix implib with 'lib' as well, so we have 'libcouchbase.lib', not
  'libcouchbase.dll'

Change-Id: I3ce7cf11575a3687f215a6a10d81f8eb1c24a417
Reviewed-on: http://review.couchbase.org/27873
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
fixup: include cntl.h

Change-Id: I92200eb0d0e5abc6786bc5e4234b1ea2592031d9
Reviewed-on: http://review.couchbase.org/27923
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Add copyright notice to all man pages

This notice will be replicated in both man and HTML outputs

Change-Id: Id779a90f14e9b644108935dd809f7fb449b47aaa
Reviewed-on: http://review.couchbase.org/27854
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Migrate to Mock 0.6

The new mock uses a synchronous request/response protocol over
line-delimited JSON objects.

The mock includes functionality for replica read as well as observe,
though this is not present in our unit tests (the actual tests for using
those features will be implemented later on).

Change-Id: Ibe41ed3955d44daf7f675dda92a3813bd81f5c18
Reviewed-on: http://review.couchbase.org/27549
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Fix lcb_connect(3) manpage SYNOPSIS

Change-Id: Ia08a01ba6e9016f5bc5982be221b8e6d03f2c4c0
Reviewed-on: http://review.couchbase.org/27956
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Add 'get_nameinfo' for V1 plugin operations

getsockname/getnameinfo don't work on v1 plugins where the file
descriptor is opaque.

For windows, SO_UPDATE_CONNECT_CONTEXT is added for mingw

Change-Id: I148eaf6cb48f0fe7e6146d1e5e618b23b135d1e5
Reviewed-on: http://review.couchbase.org/27958
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Ignore generated VERSION file

Change-Id: Id727e57d619c101a5dd4dffe900a3b61d806aab9
Reviewed-on: http://review.couchbase.org/27955
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix memcached compatibility mode

The config given in create_memcached_compat() was rewritten by the
Couchbase configuration

Change-Id: Ic9c71e2b57adfd02f6f4ab635e6081a76f55ef27
Reviewed-on: http://review.couchbase.org/27975
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Add dumb mode to cbc tool

This mode allows to use cbc with any memcached nodes

Change-Id: Ibb425e661caf4a75dac0dea720c9df3160833095
Reviewed-on: http://review.couchbase.org/27976
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Remove extra statement left after merge

Change-Id: I9101cc8a90aa5da66ea7a766f18090691ff18b02
Reviewed-on: http://review.couchbase.org/27978
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Don't make libev timers repeatable

lcb timers are "one-shot" timers. Ensure the timer is not set to
"repeat" itself.

Change-Id: I926fbb91d3c98a41483a4eacf9bc10d634a4a2e3
Reviewed-on: http://review.couchbase.org/27985
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>