Client.h 348 B

1234567891011121314151617181920
  1. #ifndef CLIENT_H
  2. #define CLIENT_H
  3. typedef struct Client
  4. {
  5. short port;
  6. int socket;
  7. } Client;
  8. void clientInitDefaults(Client* c);
  9. int clientInit(Client* c, char* ip, short port);
  10. void clientRemove(Client* c);
  11. int clientReceive(Client* c, Stream* in);
  12. void clientWaitForData(Client* c);
  13. int clientSendData(Client* c, Stream* s);
  14. #endif