send audio files using icmp

networking United States
  • 16 years ago

    Hello everyone,


    I have a very annoying problem. Bear in mind  that I'm relatively new in the field...


    I try to modify the ping program in order to send audio data from a raw binary file. The file has no header at all, just data. I'm programming in C, in a UNIX/Linux environment.


    Each packet I send has a chunk of the file, on receiving back the packets (remember that I'm taliking about ping) the corresponding function saves them in a output file.


    Anyway, the problem is that although the sending packet contains the audio almost fine, in the receiving packet  the audio is scrumbled and I can hear only some sections of the audio I was supposed to send. I have tried many things, including changing buffer limits, but nothing. In addition, I am preety sure that the receiver is sending the packets back in the order it received them...


    If anyone has a clue, please help. thanlk you all.


  • 16 years ago

    lol.. trying to circumvent firewalls ?


    if i were you, i would take a look at the following source code.
    http://icmpchat.sourceforge.net/


    the provect uses icmp for a chat program.
    find out how it works, then adapt for binary data rather than ascii .

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why.”