ACT-CV - Machine Vision for Cognitive Modeling
|
tcp server for ACT-CV More...
#include <tcpserver.h>
Public Member Functions | |
void | SetData (const char *s) |
sets the data that will be sent to clients More... | |
Static Public Member Functions | |
static ActCvServer * | GetInstance () |
the instance of the server More... | |
Public Attributes | |
ThreadSafeQueue< int > | keyCodeQueue |
key codes received from the client More... | |
Protected Member Functions | |
void | SetupServerSocket (int portNum) |
SOCKET | WaitForIncoming () |
void | WriteData (SOCKET s) |
Private Member Functions | |
ActCvServer () | |
~ActCvServer () | |
Static Private Member Functions | |
static void | ThreadFun (void *p) |
Private Attributes | |
SOCKET | fd |
bool | running |
HANDLE | threadId |
mhthreads::Mutex | mutex |
mutex to protect data More... | |
GCPointer< GCString > | data |
the data that will be sent to clients More... | |
Static Private Attributes | |
static ActCvServer * | singleInstance = nullptr |
Friends | |
struct | ActCvServerAutoStop |
tcp server for ACT-CV
Currently only working on Windows
Definition at line 64 of file tcpserver.h.
|
private |
Definition at line 45 of file tcpserver.cpp.
Referenced by GetInstance().
|
private |
Definition at line 47 of file tcpserver.cpp.
|
static |
the instance of the server
Definition at line 94 of file tcpserver.h.
References ActCvServer(), and singleInstance.
void ActCvServer::SetData | ( | const char * | s) |
sets the data that will be sent to clients
Definition at line 51 of file tcpserver.cpp.
|
protected |
Definition at line 48 of file tcpserver.cpp.
|
staticprivate |
Definition at line 52 of file tcpserver.cpp.
|
protected |
Definition at line 49 of file tcpserver.cpp.
|
protected |
Definition at line 50 of file tcpserver.cpp.
|
friend |
Definition at line 65 of file tcpserver.h.
the data that will be sent to clients
Definition at line 84 of file tcpserver.h.
|
private |
Definition at line 71 of file tcpserver.h.
ThreadSafeQueue<int> ActCvServer::keyCodeQueue |
key codes received from the client
Definition at line 105 of file tcpserver.h.
|
private |
mutex to protect data
Definition at line 78 of file tcpserver.h.
|
private |
Definition at line 72 of file tcpserver.h.
|
staticprivate |
Definition at line 67 of file tcpserver.h.
Referenced by GetInstance(), and ActCvServerAutoStop::~ActCvServerAutoStop().
|
private |
Definition at line 75 of file tcpserver.h.