-
Notifications
You must be signed in to change notification settings - Fork 89
Installation
The library requires libevent. If you would like your server application to accept secure connections using SSL you must also have the openssl library and libevent_openssl. libevent_openssl is made available as a part of the libevent package. It comes as a separate library so that one does not have to link against OpenSSL if SSL is not required.
To obtain the latest development version from github, simply run the following command:
git clone git://github.com/payden/libwebsock.git
You can download the distribution version here. You would then run the following to extract it:
tar -xvzf libwebsock-1.0.4.tar.gz
If you cloned the source from github, the following commands must be run to build and install. If you received a package ready for distribution, you need not run autogen.sh.
./autogen.sh
./configure && make && sudo make install
The configure script should determine whether or not both prerequisites for SSL support are available and build appropriately. If you would like to force libwebsock to NOT build SSL support, supply the --without-ssl argument to configure as follows:
./configure --without-ssl
Once you have built and installed libwebsock, you must link any programs you write that use it against the library.
gcc -g -O2 -o your_server_program your_server_program.c -lwebsock