diff options
author | phintuka <phintuka> | 2007-01-01 05:04:52 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-01-01 05:04:52 +0000 |
commit | 82185e7d384931c13ae7cfd915dd68d76b165119 (patch) | |
tree | baf1c044bb498e13ee8698de3bf4e381755016a4 | |
parent | 5978cefadfa387d3a7e3cdb8de257388caa00f3b (diff) | |
download | xineliboutput-82185e7d384931c13ae7cfd915dd68d76b165119.tar.gz xineliboutput-82185e7d384931c13ae7cfd915dd68d76b165119.tar.bz2 |
Initial import
-rw-r--r-- | tools/vdrdiscovery.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/vdrdiscovery.h b/tools/vdrdiscovery.h new file mode 100644 index 00000000..07694f62 --- /dev/null +++ b/tools/vdrdiscovery.h @@ -0,0 +1,30 @@ +/* + * vdrdiscovery.h + * + * Simple broadcast protocol to search VDR with xineliboutput server + * from (local) network. + * + * See the main source file 'xineliboutput.c' for copyright information and + * how to reach the author. + * + * $Id: vdrdiscovery.h,v 1.1 2007-01-01 05:04:52 phintuka Exp $ + * + */ + +#ifndef _VDRDISCOVERY_H_ +#define _VDRDISCOVERY_H_ + +#define DISCOVERY_MSG_MAXSIZE 1024 + +#ifdef VDRVERSION +int udp_discovery_init(/*int port*/); +int udp_discovery_broadcast(int fd_discovery, int server_port); +int udp_discovery_recv(int fd_discovery, char *buf, int timeout, + struct sockaddr_in *source); +int udp_discovery_is_valid_search(const char *buf); +#else +int udp_discovery_find_server(int *port, char *address); +#endif + + +#endif // _VDRDISCOVERY_H_ |