f_evt_get_open
- f_evt_get_open
- CALLING
- f_evt_get_open(long l_mode, char &c_server[], s_evt_channel &s_chan,
char **ps_info, long l_sample,l_para)
- PURPOSE
- f_evt_get_open opens an event stream from specified
channel.
- ARGUMENTS
-
- l_mode
- Type of server:
- GETEVT__FILE
- Input from file
- GETEVT__STREAM
- Input from MBS stream server
- GETEVT__TRANS
- Input from MBS transport
- GETEVT__EVENT
- Input from MBS event server
- GETEVT__REVSERV
- Input from remote event server
- c_server
- Node of server or file name.
- s_chan
- structure s_evt_channel, must be allocated.
- ps_info
- address of pointer. If it is not NULL, then
try to return file header or other information
about server. If it is NULL, then returns nothing.
- l_sample
- used by event server to send only every
'l_sample' event.
- l_para
- currently not used
- Return type
- int.
- Status codes
-
- GETEVT__SUCCESS
- success.
- GETEVT__NOFILE
- file does not exist.
- GETEVT__RDERR
- read server error.
- GETEVT__NOSERVER
- can not connect server.
- Declaration
-
INTS4 f_evt_get_open(
INTS4, CHARS *, s_evt_channel *, CHARS **, INTS4, INTS4);
- FUNCTION
- Opens the input channel and save context in s_chan.
- NOTE
- Up to four input channels can be opened.