Page 1 of 1

Developing a UDP client plugin

Posted: 24 Aug 2006 03:07
by pcd
Hi,

I am trying to write a UDP client plugin for a linux based satellite receiver (Dreambox). Streaming works with http, but is sometimes uncertain. So I want to try UDP.

I start the VLC udp streaming of a video with the command line :-

:sout=#duplicate{dst=std{access=udp,mux=ts,url=(receiver ip):9090}}

I can see the wireless light blinking at the receiver end indicating the stream reaching there. Then with :-

fd = socket(AF_INET, SOCK_DGRAM, 0) ;

I get fd = 65. Also with :-

rc = connect(fd, (struct sockaddr *)&ads, adsLen) ;

I get connect success (i.e. rc = 0). However, then with :-

len = recv(fd, tempBuffer, BLOCKSIZE, 0);

I get no success from recv (i.e. len = -1). Could the experts please suggest if I missed out a step ? Perhaps 'connect' is not appropriate with UDP ?

Regards, pcd.

Posted: 28 Aug 2006 17:01
by bXn
some answers could help us ;o)

- are you using unicast or multicast streaming ?
- could you write exact IP adresses you are using ?
- are you using blocking or non-blocking socket mode ?

- may be could you consider using errno to get more info on the error

Re: Developing a UDP client plugin

Posted: 19 Jan 2007 13:50
by mdeangel
Hello PCD,
have you been able then to make the plug in?
I am very interested.
Thank you,
best regards,
Mark
Hi,

I am trying to write a UDP client plugin for a linux based satellite receiver (Dreambox). Streaming works with http, but is sometimes uncertain. So I want to try UDP.

I start the VLC udp streaming of a video with the command line :-

:sout=#duplicate{dst=std{access=udp,mux=ts,url=(receiver ip):9090}}

I can see the wireless light blinking at the receiver end indicating the stream reaching there. Then with :-

fd = socket(AF_INET, SOCK_DGRAM, 0) ;

I get fd = 65. Also with :-

rc = connect(fd, (struct sockaddr *)&ads, adsLen) ;

I get connect success (i.e. rc = 0). However, then with :-

len = recv(fd, tempBuffer, BLOCKSIZE, 0);

I get no success from recv (i.e. len = -1). Could the experts please suggest if I missed out a step ? Perhaps 'connect' is not appropriate with UDP ?

Regards, pcd.