GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
SpineMLSimulator::NetworkClient Class Reference

#include <networkClient.h>

Public Types

enum  Mode : char { Mode::Source = 45, Mode::Target = 46 }
 
enum  DataType : char { DataType::Analogue = 31, DataType::Events = 32, DataType::Impulses = 33 }
 

Public Member Functions

 NetworkClient ()
 
 NetworkClient (const std::string &hostname, unsigned int port, unsigned int size, DataType dataType, Mode mode, const std::string &connectionName)
 
 ~NetworkClient ()
 
bool connect (const std::string &hostname, unsigned int port, unsigned int size, DataType dataType, Mode mode, const std::string &connectionName)
 
bool receive (std::vector< double > &buffer)
 
bool send (const std::vector< double > &buffer)
 

Member Enumeration Documentation

◆ DataType

Enumerator
Analogue 
Events 
Impulses 

◆ Mode

Enumerator
Source 
Target 

Constructor & Destructor Documentation

◆ NetworkClient() [1/2]

SpineMLSimulator::NetworkClient::NetworkClient ( )

◆ NetworkClient() [2/2]

SpineMLSimulator::NetworkClient::NetworkClient ( const std::string &  hostname,
unsigned int  port,
unsigned int  size,
DataType  dataType,
Mode  mode,
const std::string &  connectionName 
)

◆ ~NetworkClient()

SpineMLSimulator::NetworkClient::~NetworkClient ( )

Member Function Documentation

◆ connect()

bool SpineMLSimulator::NetworkClient::connect ( const std::string &  hostname,
unsigned int  port,
unsigned int  size,
DataType  dataType,
Mode  mode,
const std::string &  connectionName 
)

◆ receive()

bool SpineMLSimulator::NetworkClient::receive ( std::vector< double > &  buffer)

◆ send()

bool SpineMLSimulator::NetworkClient::send ( const std::vector< double > &  buffer)

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