Statistics
| Branch: | Revision:

ml @ 472bb222

Name Size Revision Age Author Comment
  old a0a1f630 about 12 years KristianBeckers git-svn-id: https://repository.napa-wine.eu/svn...
  stun_server a0a1f630 about 12 years KristianBeckers git-svn-id: https://repository.napa-wine.eu/svn...
  util 2a178954 about 12 years KristianBeckers ml update according to the Budapest Coding week...
Makefile.am 666 Bytes 7027db40 about 12 years TivadarSzemethy Modified ml/Makefile structure for automake gi...
Makefile.nec 398 Bytes 7027db40 about 12 years TivadarSzemethy Modified ml/Makefile structure for automake gi...
README 2.19 KB 8b17961c about 12 years KristianBeckers ml git-svn-id: https://repository.napa-wine.eu...
echoServer.c 16.6 KB 472bb222 about 12 years RobertBirke corrected small compilation bug with wrong #inc...
ml.c 5.24 KB 472bb222 about 12 years RobertBirke corrected small compilation bug with wrong #inc...
testfile.txt 12.2 KB a0a1f630 about 12 years KristianBeckers git-svn-id: https://repository.napa-wine.eu/svn...
transmissionHandler.c 66.7 KB 8b17961c about 12 years KristianBeckers ml git-svn-id: https://repository.napa-wine.eu...
transmissionHandler.h 24.1 KB 8b17961c about 12 years KristianBeckers ml git-svn-id: https://repository.napa-wine.eu...

Latest revisions

# Date Author Comment
472bb222 09/29/2009 08:34 AM RobertBirke

corrected small compilation bug with wrong #include in ml

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@139 a72f678d-4428-462c-85b4-08f063ced704

8b17961c 09/17/2009 03:09 PM KristianBeckers

ml

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@136 a72f678d-4428-462c-85b4-08f063ced704

2a178954 09/16/2009 01:20 PM KristianBeckers

ml update according to the Budapest Coding week

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@134 a72f678d-4428-462c-85b4-08f063ced704

d18d76c2 09/14/2009 11:19 AM TivadarSzemethy

Reorganized ml.h and transmissionhandler.h as per CodingWeek decisions

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@130 a72f678d-4428-462c-85b4-08f063ced704

a0f79d43 09/14/2009 11:15 AM TivadarSzemethy

Reorganized ml.h and transmissionhandler.h as per CodingWeek decisions

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@129 a72f678d-4428-462c-85b4-08f063ced704

fb523647 09/08/2009 10:08 PM CsabaKiraly

changed include from libevent1 to libevent2

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@108 a72f678d-4428-462c-85b4-08f063ced704

cb095e39 09/08/2009 08:11 AM TivadarSzemethy

Several changes to get the code compile

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@99 a72f678d-4428-462c-85b4-08f063ced704

0030b11f 09/02/2009 12:54 PM KristianBeckers

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@92 a72f678d-4428-462c-85b4-08f063ced704

1eb92e16 09/02/2009 07:49 AM CsabaKiraly

fix stun.c compilation error on amd64

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@90 a72f678d-4428-462c-85b4-08f063ced704

abbdb922 09/02/2009 07:49 AM CsabaKiraly

remove libevent2 dependencies from public headers

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@89 a72f678d-4428-462c-85b4-08f063ced704

View all revisions | View revisions

README


This is an short explaination for the messaging layer library. The library requires the libevent library in the version 2.0.1 alpha and the C math library. The library is implemented in C and works in unix/linux. It is tested with Ubuntu 8.04. The library can be compile with ./make. This library is a network layer abstraction for p2p systems, that has the primitives: - connect to a peer - send arbitrary size data to a peer Furthermore, it provides the functionalites: - pmtu discovery - NAT traversal - data fragmentation and reassembly The library has six source code files: messagingLayer.h messagingLayer.c transmissionHandler.h transmissionHandlder.c stun.h stun.c udpSocket.h udpSocket.c The files stun.h stun.c udpSocket.h udpSocket.c are placed in the subfolder "util". The messagingLayer.h and messagingLayer.c files contain the functions of the API. These files are only wrapper files for function in the transmissionHandler.h and transmissionHandler.c files. The files transmissionHandler.h and transmissionHandler.c have the main functionality of the messaging layer. For simplicity several functionalites were excluded into utility files stun.h, stun.c, udpSocket.h ,and udpSocket.c . Stun.h and stun.c contain the NAT traversal functionality according to STUN. They are used by the transmissionHandler to implement a STUN client. The udpSocket.h and udpSocket.c files contain a udp socket abstraction. In the current implementation the file works only with a unix socket. We implemented a simple echo server to show how the messaging layer library can be used. The echo server can be found in the main directory and it is named echoServer.c . The echo server demonstartion requires that you start a STUN server first. An open source STUN server is in the folder "stun_server". It can be started with the script start_stun_server.sh. In the following you have to start three instances of the echo server in different shells, each with a different argument. The arguments are 1, 2, and 3. The commands for the demo in short: In the folder stun_server/stund/ start ./start_stun_server.sh Back in the original folder start ./echoServer 1 ./echoServer 2 ./echoServer 3

Also available in: Atom