Re: how to get data accurately from UDP



On Nov 21, 9:07 pm, Ender <nore...@xxxxxxxxxxxx> wrote:
Hi,

I've been asked to write an app that connects to a program that I know
nothing about. The only information I have is that it's sending data to
a specific IP via UDP. The data is just some numbers, I think a pair of
numbers (floats maybe?). I've seen how to connect() via UDP but ...

My questions is, how do I go about writing for something like this if I
know nothing about the data and can't get in touch w/ the person that
does. I don't know the sizes and how the other app is sending them,
other than the above info? How do you accurately parse such data once
you have it in a buffer?

Any help, suggestions, tips, etc... much appreciated.


Get a sniffer or other network monitor, capture some packets from the
program in question and reverse engineer from there.
.



Relevant Pages

  • Re: howto receive and *understand* via UDP
    ... I've been asked to write an app that connects to a program that I know ... The only information I have is that it's sending data to ... I've seen how to connectvia UDP but ... ... comp.programming might be a better place for general questions about ...
    (comp.lang.c)
  • Re: howto receive and *understand* via UDP
    ... I've been asked to write an app that connects to a program that I know ... The only information I have is that it's sending data to a ... I've seen how to connectvia UDP but ... ... be able to see how the packet exchange is working. ...
    (comp.lang.c)
  • Re: howto receive and *understand* via UDP
    ... Ender said: ... I've been asked to write an app that connects to a program that I know ... The only information I have is that it's sending data to ... I've seen how to connectvia UDP but ... ...
    (comp.lang.c)
  • Re: howto receive and *understand* via UDP
    ... I've been asked to write an app that connects to a program that I know ... The only information I have is that it's sending data to ... I've seen how to connectvia UDP but ... ... Karthik Balaguru ...
    (comp.lang.c)
  • Re: howto receive and *understand* via UDP
    ... I've been asked to write an app that connects to a program that I know ... The only information I have is that it's sending data to ... I've seen how to connectvia UDP but ... ... raw binary octets if you have no idea what they are supposed to ...
    (comp.lang.c)