-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultistructure.h
More file actions
61 lines (51 loc) · 1.12 KB
/
multistructure.h
File metadata and controls
61 lines (51 loc) · 1.12 KB
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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: multistructure.h
* Author: VertiDesk
*
* Created on 27 janvier 2018, 19:10
*/
#include <opus/opus.h>
#ifndef MULTISTRUCTURE_H
#define MULTISTRUCTURE_H
typedef int SOCKET;
typedef struct sockaddr_in SOCKADDR_IN;
typedef struct sockaddr SOCKADDR;
typedef struct in_addr IN_ADDR;
typedef struct Options Options;
struct Options {
OpusDecoder *decoder;
const char *device;
const char *addr;
const char *pid;
unsigned int buffer;
unsigned int rate;
unsigned int jitter;
unsigned int channels;
unsigned int port;
};
typedef struct Server Server;
struct Server {
pid_t pid;
time_t start_time;
};
typedef struct Client Client;
struct Client {
char ip[16];
char name[100];
time_t connex_time;
int rate;
SOCKET sock;
};
typedef struct Slot Slot;
struct Slot {
pid_t pid;
Client* client;
Options param;
time_t start_time;
};
#endif /* MULTISTRUCTURE_H */