GPUOcelot
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

remote::RemoteDeviceMessage Class Reference

A message type for communicating with remote devices. More...

#include <RemoteDeviceMessage.h>

Collaboration diagram for remote::RemoteDeviceMessage:
Collaboration graph
[legend]

List of all members.

Classes

class  Header

Public Types

enum  Operation {
  Memory_allocate, Memory_copyHostToDevice, Memory_copyDeviceToHost, Memory_copyDeviceToDevice,
  Memory_memset, Memory_free, Device_clearMemory, Device_load,
  Device_unload, Device_createEvent, Device_destroyEvent, Device_queryEvent,
  Device_recordEvent, Device_synchronizeEvent, Device_getEventTime, Device_createStream,
  Device_destroyStream, Device_queryStream, Device_synchronizeStream, Device_setStream,
  Device_bindTexture, Device_unbindTexture, Device_driverVersion, Device_runtimeVersion,
  Device_launch, Device_getAttributes, Device_getLastError, Device_synchronize,
  Device_limitWorkerThreads, Device_setOptimizationLevel, Server_enumerateDevices, Client_acknowledge,
  Client_ping, Operation_invalid
}
typedef std::vector< char > ByteVector
typedef unsigned int DeviceId

Public Member Functions

 RemoteDeviceMessage ()
 ~RemoteDeviceMessage ()
void clear ()
void resize ()
char * data ()
unsigned int size ()
bool send (boost::asio::ip::tcp::socket &socket)
 sends this message on the indicated socket
bool receive (boost::asio::ip::tcp::socket &socket)
 receives this message on indicated socket

Static Public Member Functions

static std::string toString (const Operation &op)

Public Attributes

Header header
 message header
ByteVector message
 pointer to message payload

Detailed Description

A message type for communicating with remote devices.


Member Typedef Documentation

typedef std::vector<char> remote::RemoteDeviceMessage::ByteVector

Member Enumeration Documentation

Enumerator:
Memory_allocate 
Memory_copyHostToDevice 
Memory_copyDeviceToHost 
Memory_copyDeviceToDevice 
Memory_memset 
Memory_free 
Device_clearMemory 
Device_load 
Device_unload 
Device_createEvent 
Device_destroyEvent 
Device_queryEvent 
Device_recordEvent 
Device_synchronizeEvent 
Device_getEventTime 
Device_createStream 
Device_destroyStream 
Device_queryStream 
Device_synchronizeStream 
Device_setStream 
Device_bindTexture 
Device_unbindTexture 
Device_driverVersion 
Device_runtimeVersion 
Device_launch 
Device_getAttributes 
Device_getLastError 
Device_synchronize 
Device_limitWorkerThreads 
Device_setOptimizationLevel 
Server_enumerateDevices 
Client_acknowledge 
Client_ping 
Operation_invalid 

Constructor & Destructor Documentation

remote::RemoteDeviceMessage::RemoteDeviceMessage ( )
remote::RemoteDeviceMessage::~RemoteDeviceMessage ( )

Member Function Documentation

void remote::RemoteDeviceMessage::clear ( ) [inline]
char* remote::RemoteDeviceMessage::data ( ) [inline]
bool remote::RemoteDeviceMessage::receive ( boost::asio::ip::tcp::socket &  socket)

receives this message on indicated socket

Returns:
false if connection disconnected
void remote::RemoteDeviceMessage::resize ( ) [inline]
bool remote::RemoteDeviceMessage::send ( boost::asio::ip::tcp::socket &  socket)

sends this message on the indicated socket

Returns:
false if connection disconnected
unsigned int remote::RemoteDeviceMessage::size ( ) [inline]
std::string remote::RemoteDeviceMessage::toString ( const Operation op) [static]

Member Data Documentation

message header

pointer to message payload


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines