No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

server.h 673B

12345678910111213141516171819202122232425262728
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. /*
  7. * File: server.h
  8. * Author: dimercur
  9. *
  10. * Created on 19 octobre 2018, 14:24
  11. */
  12. #ifndef _SERVER_H_
  13. #define _SERVER_H_
  14. #define DEFAULT_SERVER_PORT 2323
  15. int openServer (int port);
  16. int closeServer();
  17. int acceptClient();
  18. int sendDataToServer(char *data, int length);
  19. int sendDataToServerForClient(int client, char *data, int length);
  20. int receiveDataFromServer(char *data, int size);
  21. int receiveDataFromServerFromClient(int client, char *data, int size);
  22. #endif /* _SERVER_H_ */