MNE-CPP
beta 1.0
|
The ShmemSocket class provides... More...
#include <shmemsocket.h>
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) |
The ShmemSocket class provides...
DECLARE CLASS ShmemSocket
Definition at line 88 of file shmemsocket.h.
void ShmemSocket::close_socket | ( | ) |
Definition at line 398 of file shmemsocket.cpp.
bool ShmemSocket::connect_client | ( | ) |
int ShmemSocket::connect_disconnect | ( | int | sock, |
int | id | ||
) |
Definition at line 423 of file shmemsocket.cpp.
int ShmemSocket::disconnect_client | ( | ) |
int ShmemSocket::interesting_data | ( | int | kind | ) |
Filter out some large data blocks which are not of interest
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.
[in] | p_pTag | ToDo |
Definition at line 101 of file shmemsocket.cpp.