Thread: Using a packet generator with self made protocol

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    5

    Using a packet generator with self made protocol

    Hello all,

    I made a server program (server.c) which receives data from a client program (client.c) using a self made protocol.
    The server "grants" the client a number of bytes using an MPCP message, and then the client sends those bytes. Afterwards the client reports how many bytes it has in his buffer. There are of course multiple clients, and this way of working implements a form of TDMA (time division multiple access) and DBA (dynamic bandwidth allocation).

    The client and server are programmed in C using libnet and libpcap (using polling).

    Now my question: how do i use a third party packet generator with the client program?
    In my client program I send the granted bytes on a very low level using libnet: I make frames of 1500 bytes. I don't know how to use these things (a packet generator and my client.c file) together.

    I prefer to use the Linux kernel packet generator...
    Is this possible?

    many thanks!
    Krulle
    Last edited by Krulle; 04-22-2012 at 10:03 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone with SIP protocol and CPP?
    By Yosuf in forum Networking/Device Communication
    Replies: 6
    Last Post: 05-28-2009, 09:51 AM
  2. FTP protocol
    By IfYouSaySo in forum Tech Board
    Replies: 5
    Last Post: 08-07-2006, 08:54 PM
  3. irc protocol
    By chrismiceli in forum C Programming
    Replies: 4
    Last Post: 09-16-2003, 12:56 AM
  4. Protocol
    By newbie_grg in forum Networking/Device Communication
    Replies: 1
    Last Post: 08-17-2003, 05:15 PM
  5. help on protocol
    By Prasad kulkarni in forum C Programming
    Replies: 3
    Last Post: 10-20-2002, 08:54 AM