28.10.2014 Views

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Synergy</strong> <strong>User</strong> <strong>Manual</strong> <strong>and</strong> <strong>Tutorial</strong><br />

PARAMETERS:<br />

RETURNS:<br />

int id – The index into cnf_map global data structure where the<br />

actual channel number or file pointer is stored<br />

char *buf -<br />

int bufsize – the number of bytes to read<br />

int e_type -<br />

int status - number of bytes read, 0 if error writing or an error code<br />

otherwise<br />

cnf_xdr_tsget(tsh, tp_name, tuple, tp_len, e_type)<br />

PURPOSE:<br />

PARAMETERS:<br />

RETURNS:<br />

Destructive reads the external data representation of a tuple from a<br />

named tuple space <strong>and</strong> Translates it to C language.<br />

int tsh<br />

char *tp_name<br />

char *tuple<br />

int tp_len<br />

int e_type<br />

int status - the size of the tuple received if successful, 0 if it is an<br />

asynchronous read or –1 on error<br />

cnf_xdr_tsput(tsh, tp_name, tuple, tp_len, e_type)<br />

PURPOSE:<br />

PARAMETERS:<br />

RETURNS:<br />

Translates a tuple to it's external data representation <strong>and</strong> inserts it<br />

into a named tuple space<br />

int tsh<br />

char *tp_name<br />

char *tuple<br />

int tp_len<br />

int e_type<br />

int status - ? on success or an error code otherwise<br />

cnf_xdr_tsread(tsh, tp_name, tuple, tp_len, e_type)<br />

PURPOSE:<br />

PARAMETERS:<br />

Reads the external data representation of a tuple from a named<br />

tuple space <strong>and</strong> translates it to C language.<br />

int tsh<br />

char *tp_name<br />

char *tuple<br />

210

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!