Developing a UDP client plugin
Posted: 24 Aug 2006 03:07
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.
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.