Branch
Hash :
94046104
Author :
Thomas de Grivel
Date :
2020-02-24T15:19:27
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
#ifndef __OUTPUT_SERVER_H
#define __OUTPUT_SERVER_H
#include <pthread.h>
#include <pw13/pw13.h>
typedef struct input_server input_server;
typedef struct output_server output_server;
#include "client_of_server.h"
struct input_server {
Pw13_Input *input;
Pw13_Patch *dest_patch; /* pointeur sur le patch sur lequel il est connecte */
char * output_name; /* nom de l'output sur lequel il est connecter */
int socket;
client_of_server *client;
};
struct output_server {
Pw13_Output *output;
int socket;
pthread_t *thread_rcv;
client_of_server *client;
};
void output_server_traitement_message (output_server *os);
void output_server_connect (output_server *os);
void ask_pump_from_server (output_server *os);
int pw13_cluster_output_patch_class_init (const char *name, Pw13_Patch *p,
void *param);
#endif
/* ndef __OUTPUT_SERVER_H */