dumber/software/raspberry/superviseur-robot/lib/server.h
Sébastien DI MERCURIO 443335431b UDP a peu pres OK
2018-11-12 17:13:52 +01:00

31 lines
740 B
C

/*
* 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: server.h
* Author: dimercur
*
* Created on 19 octobre 2018, 14:24
*/
#ifndef _SERVER_H_
#define _SERVER_H_
#define DEFAULT_SERVER_PORT 2323
int openServer (int port);
int closeServer();
int acceptClient();
int sendDataToServer(char *data, int length);
int sendDataToServerForClient(int client, char *data, int length);
int receiveDataFromServer(char *data, int size);
int receiveDataFromServerFromClient(int client, char *data, int size);
int sendCamImage(char *data, int length);
void waitUdpPing(void);
#endif /* _SERVER_H_ */