sapserver.h 1.6 KB
Newer Older
1
/*****************************************************************************
2
 * sapserver.h : SAP discovery service classes definition
3
 ****************************************************************************
4
 * Copyright (C) 1998-2004 VideoLAN
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
5
 * $Id$ 
6 7 8
 *
 * Authors: Fabrice Ollivier <cif@via.ecp.fr>
 *          Arnaud Schauly <gitan@via.ecp.fr>
9
 *          Clément Stenac <zorglub@via.ecp.fr>
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
 *          Damien Lucas <nitrox@videolan.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 *****************************************************************************/

27
#include "config.h"
28 29 30

#define MSGBUFSIZE 256

31
#define DEFAULT_CONF SYSCONFDIR"/sap.cfg"
32
#define DEFAULT_TTL 10
33
#define DEFAULT_SCOPE '8'
34
#define DEFAULT_PORT "1234"
35
#define DEFAULT_DELAY 5 /* wait DELAY seconds before each sending */
36

37

38 39 40
#define TYPE_SAP 1
#define TYPE_SLP 2

41 42 43 44 45 46
#define SAP_ON 1
#define SAP_OFF 0
#define SAP_ANNOUNCE 0
#define SAP_DELETE 1
#define SAP_IPV4 4
#define SAP_IPV6 6