File: sapserver.h

package info (click to toggle)
minisapserver 0.3.6-1.1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 704 kB
  • ctags: 149
  • sloc: sh: 4,268; cpp: 1,079; makefile: 72
file content (44 lines) | stat: -rw-r--r-- 1,640 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*****************************************************************************
 * sapserver.h : SAP discovery service classes definition
 ****************************************************************************
 * Copyright (C) 1998-2004 VideoLAN
 * $Id: sapserver.h 345 2009-01-11 19:50:41Z courmisch $ 
 *
 * Authors: Fabrice Ollivier <cif@via.ecp.fr>
 *          Arnaud Schauly <gitan@via.ecp.fr>
 *          Clément Stenac <zorglub@via.ecp.fr>
 *          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.
 *****************************************************************************/

#include "config.h"

#define MSGBUFSIZE 256

#define DEFAULT_CONF SYSCONFDIR"/sap.cfg"
#define DEFAULT_TTL 255
#define DEFAULT_SCOPE '8'
#define DEFAULT_PORT 1234
#define DEFAULT_DELAY 5 /* wait DELAY seconds before each sending */


#define TYPE_SAP 1
#define TYPE_SLP 2

#define SAP_ON 1
#define SAP_OFF 0
#define SAP_IPV4 4
#define SAP_IPV6 6