]>
Commit | Line | Data |
---|---|---|
1 | #include <strings.h> | |
2 | #include <string.h> | |
3 | #include <stdio.h> | |
4 | #include <stdlib.h> | |
5 | ||
6 | #include "common.h" | |
7 | #include "mcast.h" | |
8 | ||
9 | int is_mcast(char *url) | |
10 | { | |
11 | if (strlen(url) < 7) | |
12 | return 0; | |
13 | ||
14 | if (!strncasecmp("udp://",url,6)) | |
15 | return 1; | |
16 | ||
17 | return 0; | |
18 | } | |
19 | ||
20 | int open_mcast(char *url) | |
21 | { | |
22 | struct dvb_host *dvbhost; | |
23 | int fd; | |
24 | ||
25 | if(!is_mcast(url)) | |
26 | return -1; | |
27 | ||
28 | dvbhost = parse(&(url[6]), "2000"); | |
29 | ||
30 | fprintf(stderr,"multicast currently unimplemented!\n"); | |
31 | return -1; | |
32 | ||
33 | return fd; | |
34 | } |