mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
available, but is deprecated and turned off by default. svn path=/trunk/icecast/; revision=3837
37 lines
726 B
C
37 lines
726 B
C
#ifndef __CONNECTION_H__
|
|
#define __CONNECTION_H__
|
|
|
|
#include <sys/types.h>
|
|
#include "compat.h"
|
|
#include "httpp.h"
|
|
#include "thread.h"
|
|
#include "sock.h"
|
|
|
|
struct _client_tag;
|
|
|
|
typedef struct connection_tag
|
|
{
|
|
unsigned long id;
|
|
|
|
time_t con_time;
|
|
uint64_t sent_bytes;
|
|
|
|
int sock;
|
|
int error;
|
|
|
|
char *ip;
|
|
char *host;
|
|
} connection_t;
|
|
|
|
void connection_initialize(void);
|
|
void connection_shutdown(void);
|
|
void connection_accept_loop(void);
|
|
void connection_close(connection_t *con);
|
|
connection_t *create_connection(sock_t sock, char *ip);
|
|
int connection_create_source(struct _client_tag *client, connection_t *con,
|
|
http_parser_t *parser, char *mount);
|
|
|
|
extern rwlock_t _source_shutdown_rwlock;
|
|
|
|
#endif /* __CONNECTION_H__ */
|