]>
Commit | Line | Data |
---|---|---|
5c2e3e44 | 1 | #include <strings.h> |
2 | #include <string.h> | |
3 | #include <stdio.h> | |
4 | #include <stdlib.h> | |
d5eca7f2 | 5 | |
6 | #include "common.h" | |
5c2e3e44 | 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 | { | |
d5eca7f2 | 22 | struct dvb_host *dvbhost; |
23 | int fd; | |
24 | ||
6bcf6c4c | 25 | if(!is_mcast(url)) |
26 | return -1; | |
5c2e3e44 | 27 | |
d5eca7f2 | 28 | dvbhost = parse(&(url[6]), "2000"); |
29 | ||
6bcf6c4c | 30 | fprintf(stderr,"multicast currently unimplemented!\n"); |
31 | return -1; | |
d5eca7f2 | 32 | |
33 | return fd; | |
5c2e3e44 | 34 | } |