This is ALE4Net
Application Level Environment for Networking

Copyright 2004 Renzo Davoli University of Bologna - Italy

The a4nclient is based on alpine4linux (see LICENSE.ALPINE)
The TCP-IP stack is based on lwip (see LICENSE.lwIP)

*    This program is free software; you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation; either version 2 of the License, or
*    (at your option) any later version.
*
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License along
*    with this program; if not, write to the Free Software Foundation, Inc.,
*    59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

to install/use ale4net: 

1) Put your IP/IP6 address in the file (at the end, edit the addresses): 
	lwip-contrib/ports/unix/proj/lib/unixlib.c 
2) You can change the address of the vde switch socket (it is already defined
   as the standard socket: /tmp/vde.ctl) by editing the file: 
	lwip-contrib/ports/unix/include/vde.h
3) You can also change the address for a4n client/server communication in:
	a4n_server/a4n_server.c:
		static const char *default_listen_path = "/tmp/a4ns";
	client_socket/client_socket.c:
		static const char *default_connect_path = "/tmp/a4ns";
Please note that this is the first alpha version.
All these configuration parameters will be included soon as parameters,
control programs and environment vars.

cd to the distribution dir and type

% make

You can launch a a4nserver by running:

% cd a4nserver
% ./a4nserver

To use a4n set the environment variable as follows:

% export LD_PRELOAD="/path/to/ale4net/client_socket/libClientSocket.so"

(you can use other directories  provided you set also the LD_LIBRARY_PATH
consistently).

(if you are using csh or tcsh the command is:
% setenv LD_PRELOAD "/path/to/ale4net/client_socket/libClientSocket.so"
)

It is suggested to preload also a libpoll emulation library,
in fact ale4net provides only a select primitive, poll should be emulated 
upon select.
(http://www.clapper.org/software/poll/)

