- a filter to an event I/O connection
#include <$OV_HEADER/ecs/EIO/EIO.h> int32 EIO_addFilter ( EIO_ConnectionId id, const char *encoding_type, const char *event_syntax );
This function is used to filter events received on an event I/O connection. Filters only affect the reception of events from a connection, not the encoding type or syntax of events that can be sent to the connection. If an event arrives on an event I/O connection that does not match the filter parameters, it will be passed to the default receive function, registered with EIO_registerReceiveFn. If a default receive function is not registered, the event is discarded.
Only one filter can be installed on each event I/O connection. No events are received from the event I/O connection until a filter has been installed.
EIO_ConnectionId id
EIO_open.
const char *encoding_type
encoding_type specifies that events of all types are to be received and the event_syntax parameter ignored.
const char *event_syntax
event_syntax specifies that events of all syntaxes within the encoding type are to be received.
ECS_SUCCESS
EIO_NOT_INITIALISED
EIO_stackInit has not been called.
EIO_BAD_CONNECTION
ESOK_NOT_OPEN