Statistics
| Branch: | Revision:

ml @ f13764ee

Name Size Revision Age Author Comment
  old a0a1f630 over 12 years KristianBeckers git-svn-id: https://repository.napa-wine.eu/svn...
  stun_server a0a1f630 over 12 years KristianBeckers git-svn-id: https://repository.napa-wine.eu/svn...
  util 8885ed28 about 12 years RobertBirke ml: bug correcte in open_connection and TX pack...
Makefile.am 677 Bytes f13764ee about 12 years TivadarSzemethy tests/peer git-svn-id: https://repository.na...
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 90cb1b52 about 12 years TivadarSzemethy Reorganized ml.h and transmissionhandler.h, int...
ml.c 5.36 KB 8601bccf about 12 years RobertBirke ml: corrected 2 bugs monl: added hopcount git-...
testfile.txt 12.2 KB a0a1f630 over 12 years KristianBeckers git-svn-id: https://repository.napa-wine.eu/svn...
transmissionHandler.c 69.4 KB 8885ed28 about 12 years RobertBirke ml: bug correcte in open_connection and TX pack...
transmissionHandler.h 14.6 KB 8601bccf about 12 years RobertBirke ml: corrected 2 bugs monl: added hopcount git-...

Latest revisions

# Date Author Comment
f13764ee 10/07/2009 07:23 PM TivadarSzemethy

tests/peer

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

8885ed28 10/06/2009 11:10 PM RobertBirke

ml: bug correcte in open_connection and TX packet callback\nmonl: finished hopcount

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

8601bccf 10/06/2009 10:48 AM RobertBirke

ml: corrected 2 bugs
monl: added hopcount

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

4f1a41e6 10/04/2009 09:50 PM RobertBirke

ml: changed open_connection callbacks to a list of callbacks
mon: control message use now the ml

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

b503768a 10/02/2009 11:18 AM RobertBirke

just a fast backup of work in progress. does not compile. please use previous version

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

510f7930 10/01/2009 01:43 PM RobertBirke

(hopefully) corrected some bugs in ml: tests/mol/mon_test should run without seg_faults

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

19c6ca17 09/29/2009 02:54 PM TivadarSzemethy

fixed another pointer bug, added DNS resolver for stunserver

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

352af546 09/29/2009 02:05 PM TivadarSzemethy

fixed pointer typo in udpSocket.c

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

90cb1b52 09/29/2009 02:04 PM TivadarSzemethy

Reorganized ml.h and transmissionhandler.h, introduced stdbool

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

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

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