Statistics
| Branch: | Revision:

ml @ 16c26378

Name Size Revision Age Author Comment
  old a3fd121c about 11 years RobertBirke Some bug corrections in ML git-svn-id: https:/...
  stun_server a0a1f630 about 11 years KristianBeckers git-svn-id: https://repository.napa-wine.eu/svn...
  tests 16c26378 almost 11 years CsabaKiraly ML: moved test to separate folder git-svn-id: ...
  util 81e17b78 almost 11 years TivadarSzemethy git-svn-id: https://repository.napa-wine.eu/svn...
Makefile.am 575 Bytes 16c26378 almost 11 years CsabaKiraly ML: moved test to separate folder git-svn-id: ...
Makefile.nec 398 Bytes 7027db40 about 11 years TivadarSzemethy Modified ml/Makefile structure for automake gi...
README 2.19 KB 8b17961c about 11 years KristianBeckers ml git-svn-id: https://repository.napa-wine.eu...
ml.c 6.02 KB 7455d709 almost 11 years TivadarSzemethy minor tweaks git-svn-id: https://repository.na...
ml_log.h 677 Bytes 118b1b87 almost 11 years TivadarSzemethy code cleanup git-svn-id: https://repository.na...
testfile.txt 12.2 KB a0a1f630 about 11 years KristianBeckers git-svn-id: https://repository.napa-wine.eu/svn...
transmissionHandler.c 49.3 KB 7455d709 almost 11 years TivadarSzemethy minor tweaks git-svn-id: https://repository.na...
transmissionHandler.h 15.3 KB 7455d709 almost 11 years TivadarSzemethy minor tweaks git-svn-id: https://repository.na...

Latest revisions

# Date Author Comment
16c26378 01/14/2010 09:19 PM CsabaKiraly

ML: moved test to separate folder

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

81e17b78 01/10/2010 05:34 PM TivadarSzemethy

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

4f4687b8 01/08/2010 06:53 AM ArpadBakay

tests/NVTEST1 added

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

f3b93c46 01/04/2010 04:14 PM TivadarSzemethy

fixing repoclient getPeers bug

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

118b1b87 12/17/2009 10:05 AM TivadarSzemethy

code cleanup

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

1a0053fd 12/15/2009 06:29 PM CsabaKiraly

fixed compile issue in ml Makefile

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

69727bb9 12/15/2009 06:29 PM CsabaKiraly

fix stun.c compilation error on amd64

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

2a4d6ca0 11/30/2009 10:39 AM TivadarSzemethy

more logging/debugging tweaks

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

93a032eb 11/30/2009 10:32 AM TivadarSzemethy

minor tweaks, mainly logging

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

7455d709 11/30/2009 07:41 AM TivadarSzemethy

minor tweaks

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@251 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