SocketW r031026 reviewDownload
SocketW project is a cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++ library designed to be easy to use
SocketW project is a cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++ library designed to be easy to use.
It supports Unix sockets and TCP/IP sockets with optional SSL/TLS (OpenSSL) support. SocketW allows you to write portable and secure network applications quickly without needing to spend time learning low-level system functions or reading OpenSSL manuals.
GNU Make (if you want to use the makefiles).
An ANSI/ISO C++ compiler. SocketW should conform to ANSI/ISO C++.
OpenSSL (http://www.openssl.org if you want SSL/TSL support)
Just do 'make install' to compile and install SocketW. SocketW will be installed in /usr/local as default but this can be controlled by changing the "PREFIX" line in "Makefile.conf". Make sure that the run-time linker can find the SocketW library after installation (this is usually done by adding the line "/usr/local/lib" to "/etc/ld.so.conf" and then running "ldconfig").
If OpenSSL is not installed in the standard location you might need to add "-I/path/to/OpenSSL/include" to CFLAGS and "-L/path/to/OpenSSL/lib" to SW_LIBS in "Makefile.conf", for example:
CFLAGS =-Wall -O3 -ffast-math -I/opt/OpenSSL/include
SW_LIBS =-L/opt/OpenSSL/lib -lssl -lcrypto
You can also disable OpenSSL support completely by removing the line "#define _HAVE_SSL" in "src/sw_config.h" before compiling SocketW.
Some platforms require extra libraries to use the BSD socket subsystem, for example Win32 requires that you add "-lws2_32" to SW_LIBS (see section 5) and SUN systems requires "-lsocket -lnsl".
SocketW r031026 keywords