summaryrefslogtreecommitdiffstats
path: root/README
blob: af94f6b7a92670a6a6fbaa1e6b4d04274bfe12e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Socket wrapper library
=======================

This library passes all socket communication over unix domain sockets if the
environment variable SOCKET_WRAPPER_DIR is set.

To use socket_wrapper the following environment variables need to be set:
LD_PRELOAD=libsocket_wrapper.so
SOCKET_WRAPPER_DIR=/path/to/socket_dir

On MacOSX it is:
DYLD_INSERT_LIBRARIES=libsocket_wrapper.dylib
SOCKET_WRAPPER_DIR=/path/to/socket_dir

The following environment variables could be set:

SOCKET_WRAPPER_DEFAULT_IFACE
    The default interface to use if nothing has
    been set trough the functions.
    Set it to '11' for '127.0.0.11'.

SOCKET_WRAPPER_PCAP_FILE
    If set then all traffic will be written to the
    specified pcap file.

SOCKET_WRAPPER_DEBUGLEVEL
   If you socket_wrapper with with debug symbols
   you can turn on logging by setting this to an
   integer between 1 and 3.
   0 = ERROR
   1 = WARNING
   2 = DEBUG
   3 = TRACE