ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
ActCvServer Class Reference

tcp server for ACT-CV More...

#include <tcpserver.h>

Collaboration diagram for ActCvServer:
Collaboration graph

Public Member Functions

void SetData (const char *s)
 sets the data that will be sent to clients More...

Static Public Member Functions

static ActCvServerGetInstance ()
 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

bool running
HANDLE threadId
mhthreads::Mutex mutex
 mutex to protect data More...
GCPointer< GCStringdata
 the data that will be sent to clients More...

Static Private Attributes

static ActCvServersingleInstance = nullptr


struct ActCvServerAutoStop

Detailed Description

tcp server for ACT-CV

Currently only working on Windows

use Ice instead

Definition at line 64 of file tcpserver.h.

Constructor & Destructor Documentation

ActCvServer::ActCvServer ( )

Definition at line 45 of file tcpserver.cpp.

Referenced by GetInstance().

ActCvServer::~ActCvServer ( )

Definition at line 47 of file tcpserver.cpp.

Member Function Documentation

static ActCvServer* ActCvServer::GetInstance ( )

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.

void ActCvServer::SetupServerSocket ( int  portNum)

Definition at line 48 of file tcpserver.cpp.

void ActCvServer::ThreadFun ( void *  p)

Definition at line 52 of file tcpserver.cpp.

SOCKET ActCvServer::WaitForIncoming ( )

Definition at line 49 of file tcpserver.cpp.

void ActCvServer::WriteData ( SOCKET  s)

Definition at line 50 of file tcpserver.cpp.

Friends And Related Function Documentation

friend struct ActCvServerAutoStop

Definition at line 65 of file tcpserver.h.

Member Data Documentation

GCPointer<GCString> ActCvServer::data

the data that will be sent to clients

See Also

Definition at line 84 of file tcpserver.h.

SOCKET ActCvServer::fd

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.

mhthreads::Mutex ActCvServer::mutex

mutex to protect data

Definition at line 78 of file tcpserver.h.

bool ActCvServer::running

Definition at line 72 of file tcpserver.h.

ActCvServer * ActCvServer::singleInstance = nullptr

Definition at line 67 of file tcpserver.h.

Referenced by GetInstance(), and ActCvServerAutoStop::~ActCvServerAutoStop().

HANDLE ActCvServer::threadId

Definition at line 75 of file tcpserver.h.

The documentation for this class was generated from the following files:

ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (