mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-06-30 06:35:23 +00:00
-- per mountpoint listener maxima -- static configuration of mountpoint fallbacks -- stream dumping (write incoming stream to disk) Fixed some warnings that other people introduced. svn path=/trunk/icecast/; revision=4383
38 lines
861 B
C
38 lines
861 B
C
/* client.h
|
|
**
|
|
** client data structions and function definitions
|
|
**
|
|
*/
|
|
#ifndef __CLIENT_H__
|
|
#define __CLIENT_H__
|
|
|
|
#include "connection.h"
|
|
|
|
typedef struct _client_tag
|
|
{
|
|
/* the clients connection */
|
|
connection_t *con;
|
|
/* the clients http headers */
|
|
http_parser_t *parser;
|
|
|
|
/* http response code for this client */
|
|
int respcode;
|
|
|
|
/* buffer queue */
|
|
refbuf_queue_t *queue;
|
|
/* position in first buffer */
|
|
unsigned long pos;
|
|
|
|
/* Format-handler-specific data for this client */
|
|
void *format_data;
|
|
} client_t;
|
|
|
|
client_t *client_create(connection_t *con, http_parser_t *parser);
|
|
void client_destroy(client_t *client);
|
|
void client_send_504(client_t *client, char *message);
|
|
void client_send_404(client_t *client, char *message);
|
|
void client_send_401(client_t *client);
|
|
void client_send_400(client_t *client, char *message);
|
|
|
|
#endif /* __CLIENT_H__ */
|