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

distributed ACT-CV: client class More...

#include <TcpClient.h>

Collaboration diagram for ActCvClient:
Collaboration graph

Public Member Functions

 ActCvClient ()
 
 ~ActCvClient ()
 
void ConnectTo (const char *name, int port)
 connects to the server running on name More...
 
void SendKey (int keyCode)
 send a key to the server, it will be placed in the operating systems event loop on the server More...
 
void ReadData ()
 read data from ACT-CV running on the server More...
 

Protected Attributes

SOCKET sock
 my socket More...
 
bool isConnected
 connection status More...
 

Detailed Description

distributed ACT-CV: client class

Definition at line 55 of file TcpClient.h.

Constructor & Destructor Documentation

ActCvClient::ActCvClient ( )

Definition at line 64 of file TcpClient.h.

ActCvClient::~ActCvClient ( )

Definition at line 65 of file TcpClient.h.

References isConnected, and sock.

Member Function Documentation

void ActCvClient::ConnectTo ( const char *  name,
int  port 
)

connects to the server running on name

may throw ClientError

Parameters
portthe tcp port
namethe server name
See Also
ACTCVSERVER_PORTNUM

Definition at line 32 of file TcpClient.cpp.

Referenced by main().

void ActCvClient::ReadData ( )

read data from ACT-CV running on the server

may throw ClientError

to be subclassed somewhere

Definition at line 89 of file TcpClient.cpp.

Referenced by main().

void ActCvClient::SendKey ( int  keyCode)

send a key to the server, it will be placed in the operating systems event loop on the server

may throw ClientError

Parameters
keyCodecode of the key as defined in the Java runtime environment

Definition at line 69 of file TcpClient.cpp.

Referenced by main().

Member Data Documentation

bool ActCvClient::isConnected
protected

connection status

Definition at line 61 of file TcpClient.h.

Referenced by ~ActCvClient().

SOCKET ActCvClient::sock
protected

my socket

Definition at line 58 of file TcpClient.h.

Referenced by ~ActCvClient().


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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)