extern int bp_new_reader_writer

(struct BP_CONNECTION* conn,
  RWIO reader, void* readhandle,
  RWIO writer, void* writehandle,
  int readsize,
  IODESTROY finreader,
  IODESTROY finwriter)

Pushes a read/write function to the I/O stack for the connection.

Documentation

Pushes a read/write function to the I/O stack for the connection.

Only the top r/w functions get called. To push a filter, use bp_push_rwfilter.

Parameters:
conn - A pointer to the connection structure.
reader - Function pointer for read filter.
readhandle - User-supplied pointer for the reader function.
writer - Function pointer for write filter.
writehandle - User-supplied pointer for the writer function.
finreader - Function pointer for releasing any reader-specific resources.
finwriter - Function pointer for releasing any writer-specific resources.
Returns:
BLW_OK or BLW_ERROR.

Home Alphabetic index



This page was generated with the help of DOC++.