"Fossies" - the Fresh Open Source Software Archive

Member "minidlna-1.3.0/tivo_beacon.h" (24 Nov 2020, 1245 Bytes) of package /linux/privat/minidlna-1.3.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "tivo_beacon.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 1.2.1_vs_1.3.0.

    1 /* TiVo discovery
    2  *
    3  * Project : minidlna
    4  * Website : http://sourceforge.net/projects/minidlna/
    5  * Author  : Justin Maggard
    6  *
    7  * MiniDLNA media server
    8  * Copyright (C) 2009  Justin Maggard
    9  *
   10  * This file is part of MiniDLNA.
   11  *
   12  * MiniDLNA is free software; you can redistribute it and/or modify
   13  * it under the terms of the GNU General Public License version 2 as
   14  * published by the Free Software Foundation.
   15  *
   16  * MiniDLNA is distributed in the hope that it will be useful,
   17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   19  * GNU General Public License for more details.
   20  *
   21  * You should have received a copy of the GNU General Public License
   22  * along with MiniDLNA. If not, see <http://www.gnu.org/licenses/>.
   23  */
   24 #include "config.h"
   25 #ifdef TIVO_SUPPORT
   26 /*
   27  *  * A saved copy of a beacon from another tivo or another server
   28  *   */
   29 struct aBeacon
   30 {
   31 #ifdef DEBUG
   32    time_t lastSeen;
   33 #endif
   34    char * machine;
   35    char * identity;
   36    struct aBeacon *next;
   37 };
   38 
   39 uint32_t
   40 getBcastAddress();
   41 
   42 int
   43 OpenAndConfTivoBeaconSocket();
   44 
   45 void
   46 sendBeaconMessage(int fd, struct sockaddr_in * client, int len, int broadcast);
   47 
   48 void
   49 ProcessTiVoBeacon(struct event *);
   50 #endif