mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-11-03 04:17:17 -05:00
24 lines
385 B
C
24 lines
385 B
C
|
#ifndef __CONNECTION_H__
|
||
|
#define __CONNECTION_H__
|
||
|
|
||
|
typedef struct connection_tag
|
||
|
{
|
||
|
unsigned long id;
|
||
|
|
||
|
time_t con_time;
|
||
|
long long 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);
|
||
|
|
||
|
#endif /* __CONNECTION_H__ */
|