日期:2014-05-16 浏览次数:20769 次
#include "ListenerManager.h" #include <pthread.h> #include "HTTPListener.h" ListenerManager::ListenerManager() { } ListenerManager::~ListenerManager() { } bool ListenerManager::startListen() { pthread_t thread_do; HTTPListener *hl = new HTTPListener(); hl->b1.ipaddress="192.168.131.42"; hl->b1.port=3491; [color=#FF0000]int p=pthread_create(&thread_do,NULL,hl->startListen(),NULL);[/color] return true; }