Main Page | Namespace List | Alphabetical List | Class List | Directories | File List | Class Members | File Members

TCPSynchronizedClient.cpp File Reference

#include "TCPSynchronizedClient.h"
#include "SpikeStreamSimulation.h"
#include "DeviceMessages.h"
#include "PerformanceTimer.h"
#include <pthread.h>

Go to the source code of this file.

Defines

#define SPIKE_BUFFER_SIZE   60000
#define MESSAGE_BUFFER_SIZE   1048576

Functions

void * startTCPClientConnectThread (void *tmpTcpSyncClient)


Define Documentation

#define MESSAGE_BUFFER_SIZE   1048576
 

Size of the receive buffer used to unpack spikes from the network.

Definition at line 46 of file TCPSynchronizedClient.cpp.

Referenced by UDPSynchronizedClient::run(), TCPSynchronizedClient::TCPSynchronizedClient(), and UDPSynchronizedClient::UDPSynchronizedClient().

#define SPIKE_BUFFER_SIZE   60000
 

Size of the array used to store received spikes. This has enough space for more than 5000 spikes, each of which takes 12 bytes to store. return false;

Definition at line 42 of file TCPSynchronizedClient.cpp.

Referenced by UDPSynchronizedClient::run(), TCPSynchronizedClient::TCPSynchronizedClient(), and UDPSynchronizedClient::UDPSynchronizedClient().


Function Documentation

void* startTCPClientConnectThread void *  tmpTcpSyncClient  ) 
 

Function that is called in a separate thread to connect to the socket.

Definition at line 50 of file TCPSynchronizedClient.cpp.

References TCPSynchronizedClient::externalDevAddr, TCPSynchronizedClient::socketConnected, TCPSynchronizedClient::socketHandle, and SpikeStreamSimulation::systemError().

Referenced by TCPSynchronizedClient::openSocket().


Generated on Mon Sep 3 22:24:34 2007 for SpikeStream Simulation by  doxygen 1.4.4