File: types.h

package info (click to toggle)
icecast 1.0.0-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 392 kB
  • ctags: 243
  • sloc: ansic: 2,408; sh: 194; makefile: 139; perl: 137; java: 91; sql: 17
file content (63 lines) | stat: -rw-r--r-- 2,394 bytes parent folder | download
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* types.h
 * - General Type Declarations
 *
 * Copyright (c) 1999 Jack Moffitt, Barath Raghavan
 *
 * 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-1307, USA.
 *
 */

#ifndef _ICECAST_TYPES_H
#define _ICECAST_TYPES_H

typedef struct {
	int *clients;		/* Client array */
	int num_clients;	/* Clients connected */
	int max_clients;	/* Maximum support clients */
	int port;		/* Port for listening */
	int client_lsock;	/* Socket descriptor for listen port */
	int encoder_port;	/* Port for encoding */
	int encoder_lsock;	/* Socket descriptor for encoder listen port */
	int encoder_sock;	/* Socket descript for encoder */

	char *encoder_pass;	/* Password to verify encoder */

        int remote_admin_port;  /* Port for remote administration */
        int remote_admin_lsock; /* Socket descriptor for remote administration listen port */
        int remote_admin_sock;  /* Socket descriptor for remote administration */

	int redirection;        /* Are we redirecting? */
	char *redirection_host; /* Hostname or ip of server */
	int redirection_port;   /* Port of server */
	int redirection_retries;/* Number of times to retry before failing */

        char *remote_admin_pass;/* Password for remote administration */

	char *name;		/* Name of Server */
	char *genre;		/* Genre of music */
	int bitrate;		/* Bitrate of server */
	char *url;		/* Url for server */
	int public;		/* List on the directory? */
	int server_id;		/* Server id (for directory functions) */
	int touch_freq;		/* Frequency to update directory */

	char *logfilename;	/* Name of log file */
	FILE *logfile;		/* File to log to */

	char *directory_server;	/* Directory server */
	long server_start_time; /* The time the server started */
} server_info_t;

#endif