|
OpenOBEX
|
Function definition for custom transports. More...
#include <obex_const.h>
Data Fields | |
| int(*) | connect (obex_t *handle, void *customdata) |
| connect to a server (client-only) | |
| int(*) | disconnect (obex_t *handle, void *customdata) |
| disconnect (server/client) | |
| int(*) | listen (obex_t *handle, void *customdata) |
| listen to incoming connections (server-only) | |
| int(*) | read (obex_t *handle, void *customdata, uint8_t *buf, int size) |
| remote connection input This function is optional as it is an alternative to providing the data with OBEX_CustomDataFeed(). | |
| int(*) | write (obex_t *handle, void *customdata, uint8_t *buf, int len) |
| remote connection output | |
| int(*) | handleinput (obex_t *handle, void *customdata, int timeout) |
| directly called by OBEX_HandleInput | |
| void * | customdata |
Function definition for custom transports.
| int(*) obex_ctrans_t::connect(obex_t *handle, void *customdata) |
connect to a server (client-only)
| void* obex_ctrans_t::customdata |
| int(*) obex_ctrans_t::disconnect(obex_t *handle, void *customdata) |
disconnect (server/client)
| int(*) obex_ctrans_t::handleinput(obex_t *handle, void *customdata, int timeout) |
directly called by OBEX_HandleInput
| int(*) obex_ctrans_t::listen(obex_t *handle, void *customdata) |
listen to incoming connections (server-only)
| int(*) obex_ctrans_t::read(obex_t *handle, void *customdata, uint8_t *buf, int size) |
remote connection input This function is optional as it is an alternative to providing the data with OBEX_CustomDataFeed().
The memory that 'buf' points to has enough room for RX MTU bytes. The minimum number of bytes needed to go on is specified by 'size'.
| int(*) obex_ctrans_t::write(obex_t *handle, void *customdata, uint8_t *buf, int len) |
remote connection output