Subversion Repositories HomeAutomation

Rev

Rev 1026 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1026 Rev 1033
Line 40... Line 40...
40
#include <fcntl.h>
40
#include <fcntl.h>
41
#include <sys/ioctl.h>
41
#include <sys/ioctl.h>
42
#include <signal.h>
42
#include <signal.h>
43
#include <netinet/tcp.h>
43
#include <netinet/tcp.h>
44
 
44
 
45
 
-
 
-
 
45
#include "../Threads/mutex.h"
46
#include "../Threads/thread.h"
46
#include "../Threads/thread.h"
47
#include "../Threads/semaphore.h"
47
#include "../Threads/semaphore.h"
48
#include "../Threads/threadsafequeue.h"
48
#include "../Threads/threadsafequeue.h"
49
#include "../Tools/tools.h"
49
#include "../Tools/tools.h"
-
 
50
#include "../Logger/logger.h"
50
 
51
 
51
#include "socketexception.h"
52
#include "socketexception.h"
52
#include "socketevent.h"
53
#include "socketevent.h"
53
#include "socketeventcallback.h"
54
#include "socketeventcallback.h"
54
 
55
 
Line 109... Line 110...
109
    unsigned int myReconnectTimeout;
110
    unsigned int myReconnectTimeout;
110
    int mySocket;
111
    int mySocket;
111
    bool myForceReconnect;
112
    bool myForceReconnect;
112
    sockaddr_in myAddressStruct;
113
    sockaddr_in myAddressStruct;
113
 
114
 
-
 
115
    Mutex mySendMutex;
114
 
116
 
115
    Semaphore myEventSemaphore;
117
    Semaphore myEventSemaphore;
116
    ThreadSafeQueue<SocketEvent> myEventQueue;
118
    ThreadSafeQueue<SocketEvent> myEventQueue;
117
    SocketEventCallback *myEventCallback;
119
    SocketEventCallback *myEventCallback;
118
    void eventAdd(unsigned int eventType, string eventData);
120
    void eventAdd(unsigned int eventType, string eventData);