00001 /* 00002 * Client.h 00003 * 00004 * Created on: 09.04.2011 00005 * Author: nick 00006 */ 00007 00008 #ifndef CLIENT_H_ 00009 #define CLIENT_H_ 00010 00011 #include "Protocol.h" 00012 #include <stdlib.h> 00013 #include <sys/types.h> 00014 #include <sys/socket.h> 00015 #include <netinet/in.h> 00016 #include <arpa/inet.h> 00017 #include <string.h> 00018 #include <pthread.h> 00019 void* client_threadFunc(void* clnt); 00020 //template <class Listener_T> 00021 class Client: public Protocol/*<Listener_T>*/ { 00022 protected: 00023 //int i32SocketFD; 00024 pthread_t clientThread; 00025 public: 00026 Client(); 00027 void connect_server(/*char**/string address, u_int16_t port); 00028 void createNodeSend(); 00029 virtual void startXMLTagNodeHandler(Node* node); 00030 virtual void endXMLTagNodeHandler(Node* node); 00031 virtual ~Client(); 00032 friend void* client_threadFunc(void* clnt); 00033 }; 00034 00035 #endif /* CLIENT_H_ */
1.7.1