OpenOBEX  1.7
Data Fields
obex_ctrans_t Struct Reference

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) More...
 
int(* disconnect )(obex_t *handle, void *customdata)
 disconnect (server/client) More...
 
int(* listen )(obex_t *handle, void *customdata)
 listen to incoming connections (server-only) More...
 
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(). More...
 
int(* write )(obex_t *handle, void *customdata, uint8_t *buf, int len)
 remote connection output More...
 
int(* handleinput )(obex_t *handle, void *customdata, int timeout)
 directly called by OBEX_HandleInput More...
 
void * customdata
 

Detailed Description

Function definition for custom transports.

Field Documentation

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


The documentation for this struct was generated from the following file: