MNE-CPP  beta 1.0
Public Member Functions | List of all members
NeuromagPlugin::ShmemSocket Class Reference

The ShmemSocket class provides... More...

#include <shmemsocket.h>

Inheritance diagram for NeuromagPlugin::ShmemSocket:

Public Member Functions

 ShmemSocket (QObject *parent=0)
 
int receive_tag (FiffTag::SPtr &p_pTag)
 
bool connect_client ()
 
int disconnect_client ()
 
void set_data_filter (int *kinds, int nkind)
 
void close_socket ()
 
int connect_disconnect (int sock, int id)
 
int interesting_data (int kind)
 

Detailed Description

The ShmemSocket class provides...

DECLARE CLASS ShmemSocket

Definition at line 88 of file shmemsocket.h.

Member Function Documentation

void ShmemSocket::close_socket ( )
Returns

Definition at line 398 of file shmemsocket.cpp.

bool ShmemSocket::connect_client ( )

Connect to the data server process

Returns

Definition at line 307 of file shmemsocket.cpp.

int ShmemSocket::connect_disconnect ( int  sock,
int  id 
)
Returns

Definition at line 423 of file shmemsocket.cpp.

int ShmemSocket::disconnect_client ( )

Disconnect from the data server process

Returns

Definition at line 365 of file shmemsocket.cpp.

int ShmemSocket::interesting_data ( int  kind)

Filter out some large data blocks which are not of interest

Returns

Definition at line 465 of file shmemsocket.cpp.

int ShmemSocket::receive_tag ( FiffTag::SPtr p_pTag)

Receive one tag from the data server.

This routine reads a message from the data server socket and grabs the data. The data may actually be in a shared memory segment noted in the message.

The id parameter is needed for two purposes. The data transfer mechanism varies depending on the client number. Clients with id above 10000 use shared memory transfer while other used a regular file to transfer the data.It is needed also if the conndedtion needs to be closed after an error.

Parameters
[in]p_pTagToDo
Returns
Status OK or FAIL.

Definition at line 101 of file shmemsocket.cpp.


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