#ifndef CLIENT_H #define CLIENT_H #include #include "Stream.h" typedef struct Client { short port; int socket; pthread_t thread; ClientStreamFunction handler; } Client; void clientInitDefaults(Client* c); int clientInit(Client* c, char* ip, short port); void clientRemove(Client* c); int clientReceive(Client* c, Stream* in); int clientSendData(Client* c, Stream* out); void clientRegisterHandler(Client* c, ClientStreamFunction f); #endif