Menu [hide]

Forum: DCCP-TP

Forums->DCCP-TP->Help: How to start!

shirie
Help: How to start!


Hi, all.
I'm a novice. Now I want to study the DCCP code. I've download the "dccp-tp-r0.10" code. Firstly, I want to make the code run. My os is Fedora Core 5, kernel version is 2.6.15. Is that suitble for the code? And how to compile it? Then if I want to study the code for detail. I find it a little difficult to get starting. Would someone give me some advice? Thank you very much!

 
on: Wed 20 of Aug, 2008 [11:46 UTC] reads: 3702

Posted messages

author message
trphelan
Re: Help: How to start!
on: Wed 20 of Aug, 2008 [13:25 UTC]
Hi Shirie,

I haven't built dccp-tp on anything but a very old Suse Linux distribution, but I can't imagine that Fedora would be a problem. To build it go to the ports/lprocess directory and type 'make' (without the quotes of course :-)).

This will produce the executables dccp-tp (the DCCP service itself), discard-client and discard-server (a discard application) and echo-client and echo-server (an echo application).

The easiest way to try it out after that is to use three windows. In one, run dccp-tp. In the second, run discard-server and in the third run discard-client (in that order). The client will connect to the server via the loopback address and send 100 packets, which will be discarded by the server.

For variety, discard-client takes a few command options: -a for an IP address to connect to, -p for the number of packets to send. See ports/lprocess/apps/discard/discard-client.c for details. If you have two computers, run dccp-tp on both, discard-server on one and 'discard-client -a address-of-other-computer' on the other to actually send packets across the network.

As far as studying the code, the 'ports' directory tree contains platform-specific support code and the 'core' directory tree contains the actual dccp code — 'core/dccp' has the dccp main code and 'core/ccid23' have the CCID code. A good place to start to understand the code is in core/dccp/dctpRcv.c. This contains the code that handles all incoming packets.

Good luck and if you have any more questions just ask :-).

Tom P.

> Hi, all.
> I'm a novice. Now I want to study the DCCP code. I've download the "dccp-tp-r0.10" code. Firstly, I want to make the code run. My os is Fedora Core 5, kernel version is 2.6.15. Is that suitble for the code? And how to compile it? Then if I want to study the code for detail. I find it a little difficult to get starting. Would someone give me some advice? Thank you very much!


author message
shirie
Re: Re: Help: How to start!
on: Thu 21 of Aug, 2008 [11:53 UTC]
Thank you very much, trphelan! I appreciate your help!

> Hi Shirie,
>
> I haven't built dccp-tp on anything but a very old Suse Linux distribution, but I can't imagine that Fedora would be a problem. To build it go to the ports/lprocess directory and type 'make' (without the quotes of course :-)).
>
> This will produce the executables dccp-tp (the DCCP service itself), discard-client and discard-server (a discard application) and echo-client and echo-server (an echo application).
>
> The easiest way to try it out after that is to use three windows. In one, run dccp-tp. In the second, run discard-server and in the third run discard-client (in that order). The client will connect to the server via the loopback address and send 100 packets, which will be discarded by the server.
>
> For variety, discard-client takes a few command options: -a for an IP address to connect to, -p for the number of packets to send. See ports/lprocess/apps/discard/discard-client.c for details. If you have two computers, run dccp-tp on both, discard-server on one and 'discard-client -a address-of-other-computer' on the other to actually send packets across the network.
>
> As far as studying the code, the 'ports' directory tree contains platform-specific support code and the 'core' directory tree contains the actual dccp code — 'core/dccp' has the dccp main code and 'core/ccid23' have the CCID code. A good place to start to understand the code is in core/dccp/dctpRcv.c. This contains the code that handles all incoming packets.
>
> Good luck and if you have any more questions just ask :-).
>
> Tom P.
>
> > Hi, all.
> > I'm a novice. Now I want to study the DCCP code. I've download the "dccp-tp-r0.10" code. Firstly, I want to make the code run. My os is Fedora Core 5, kernel version is 2.6.15. Is that suitble for the code? And how to compile it? Then if I want to study the code for detail. I find it a little difficult to get starting. Would someone give me some advice? Thank you very much!




Show posts: