Please Help

RudeSocket™ Open Source C++ Socket Library

Version 1.2.0

Installation

Linux Installation

This installation puts the header files and libraries into public places so they are easily accessed by all your programs. The public areas are usually /usr/include and /usr/lib OR /usr/local/include and /usr/local/lib. We have assumed /usr/lib and /usr/include for these instructions.

NOTE: You may have to have super user priveleges (eg. logged in as root) to install Socket. If you don't, see the poor man's linux installation section below.

1. If it doesn't already exist, create public rude lib and include directories under /usr/include and /usr/lib

>mkdir /usr/include/rude
>mkdir /usr/lib/rude

>chmod 755 /usr/include/rude
>chmod 755 /usr/lib/rude

 

2. Copy the Socket header file(s) to the /usr/include/rude directory.

>cp cgiparser.h /usr/include/rude/socket.h
>chmod 644 /usr/include/rude/socket.h

 

3. Copy the appropriate library to the /usr/lib/rude directory

For Shared Library:

>cp rudesocket.so.1.0_i386 /usr/lib/rudesocket.so
>chmod 644 /usr/lib/rudesocket.so

For Regular Library:

>cp rudesocket.lib.1.0_i386 /usr/lib/rudesocket.lib
>chmod 644 /usr/lib/rudesocket.lib

Poor man's linux installation

If you do not have root priveleges and cannot install the component, you can simply copy the header file (socket.h) and the static library ( rudesocket.lib.1.0_i386 ) to the same directory as your source files. In this case, you will need to include the header file using quotes (") instead of brackets ("<>")

eg:

#include "socket.h"

instead of

#include <rude/socket.h>