#include <TCPSynchronizedServer.h>
Public Member Functions | |
| TCPSynchronizedServer (unsigned int neurGrpWidth) | |
| ~TCPSynchronizedServer () | |
| bool | closeDevice () |
| bool | openSocket (string ipAddress, int port) |
| bool | sendSpikeData () |
| void | setNeuronVector (vector< unsigned int > *neurVectPtr, unsigned int startNeurID) |
Public Attributes | |
| int | socketHandle |
| sockaddr_in | socketAddress |
| bool | socketConnected |
Private Member Functions | |
| TCPSynchronizedServer (const TCPSynchronizedServer &) | |
| TCPSynchronizedServer | operator= (const TCPSynchronizedServer &) |
Private Attributes | |
| unsigned int | neuronGrpWidth |
| unsigned int | startNeuronID |
| bool | socketOpen |
| vector< unsigned int > * | neuronVectorPtr |
Definition at line 39 of file TCPSynchronizedServer.h.
|
|
Constructor. Definition at line 52 of file TCPSynchronizedServer.cpp. References neuronGrpWidth, and socketOpen. |
|
|
Destructor. Definition at line 59 of file TCPSynchronizedServer.cpp. References closeDevice(). |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
|
Closes the socket. Definition at line 74 of file TCPSynchronizedServer.cpp. References socketHandle, and socketOpen. Referenced by DeviceManager::closeDevice(), and ~TCPSynchronizedServer(). |
|
||||||||||||
|
Opens the socket Adapted from: http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/index.html. Definition at line 85 of file TCPSynchronizedServer.cpp. References socketAddress, socketConnected, socketHandle, socketOpen, startTCPServerConnectThread(), and SpikeStreamSimulation::systemError(). Referenced by DeviceManager::loadDeviceInformation(). |
|
|
Declare assignment private so it cannot be used. |
|
|
Sends spike data to the receiving socket. Definition at line 135 of file TCPSynchronizedServer.cpp. References neuronGrpWidth, neuronVectorPtr, socketHandle, socketOpen, startNeuronID, and SpikeStreamSimulation::systemError(). Referenced by DeviceManager::updateDevice(). |
|
||||||||||||
|
Passes a reference to the vector of firing neurons held in SpikeStreamSimulation. Definition at line 248 of file TCPSynchronizedServer.cpp. References neuronVectorPtr, and startNeuronID. Referenced by DeviceManager::setNeuronVector(). |
|
|
Neuron group width. Definition at line 64 of file TCPSynchronizedServer.h. Referenced by sendSpikeData(), and TCPSynchronizedServer(). |
|
|
Reference to the vector of currently firing neurons held in SpikeStreamSimulation. Definition at line 74 of file TCPSynchronizedServer.h. Referenced by sendSpikeData(), and setNeuronVector(). |
|
|
Address of the socket. Definition at line 55 of file TCPSynchronizedServer.h. Referenced by openSocket(), and startTCPServerConnectThread(). |
|
|
Records whether socket has been successfully connected. Definition at line 58 of file TCPSynchronizedServer.h. Referenced by openSocket(), and startTCPServerConnectThread(). |
|
|
Integer used to access the socket. Definition at line 52 of file TCPSynchronizedServer.h. Referenced by closeDevice(), openSocket(), sendSpikeData(), and startTCPServerConnectThread(). |
|
|
Records whether socket is open. Definition at line 70 of file TCPSynchronizedServer.h. Referenced by closeDevice(), openSocket(), sendSpikeData(), and TCPSynchronizedServer(). |
|
|
First ID of neuron group. Definition at line 67 of file TCPSynchronizedServer.h. Referenced by sendSpikeData(), and setNeuronVector(). |
1.4.4