in reply to Check udp stream coming in

You might be able to do things that way ... but it would be “damned expensive.”   :-<   Much too expensive, I think, to be useful.

Since it is reasonable to assume that you are “stuck with UDP,” you probably need to deal with the message integrity problem using the nature of the messages that sender and receiver exchange with one another.   Serial numbers and checksums, for example.   Does the VLC protocol that these two programs are using, not already have such things?

UDP (vs. TCP/IP) by design provides un-verified communications.   In exchange for much lighter network loads, it is possible that not all of the traffic will go through, and the two programs must be prepared to deal with that.

Replies are listed 'Best First'.
Re^2: Check udp stream coming in
by shekarkcb (Beadle) on Mar 24, 2011 at 06:46 UTC
    Thank you all for the reply.

    I was looking for something else. Since tcpdump was a command that would give the o/p, i was interested in that. I could check for udp packets using that, and it works fine. But i heard of socket programing, and hence looking for any similar module that will
    1). Check the UDP packet coming in or not from a particular ip
    2). If possible look into UDP packet, get the TS header, get the program NO, Audio PID, Video PID etc. Any pointers would be greatly appreciated. Thanks.