OpenOBEX shared library programming guide

Pontus Fuchs

      
     


Table of Contents
Introduction
Programming the library
Preparations
The event callback
Client Operations
Server Operations
API Reference
OBEX_Init --  Initialize OBEX.
OBEX_RegisterCTransport --  Register a custom transport
OBEX_Cleanup --  Close down an OBEX instance
OBEX_SetUserData --  Set userdata of an OBEX handle
OBEX_GetUserData --  Read the userdata from an OBEX handle
OBEX_SetUserCallBack --  Change user callback on an OBEX handle
OBEX_SetTransportMTU --  Set MTU to be used for receive and transmit
OBEX_ServerRegister --  Start listening for incoming connections
OBEX_ServerAccept --  Accept an incoming connection
OBEX_HandleInput --  Let the OBEX parser do some work
OBEX_CustomDataFeed --  Feed OBEX with data when using a custom transport
OBEX_TransportConnect --  Try to connect to peer
OBEX_TransportDisconnect --  Disconnect transport
OBEX_GetFD --  Get FD
OBEX_Request --  Start a request (as client)
OBEX_CancelRequest --  Cancel an ongoing operation
OBEX_ObjectNew --  Create a new OBEX Object
OBEX_ObjectDelete --  Delete an OBEX object
OBEX_ObjectAddHeader --  Attach a header to an object
OBEX_ObjectGetNextHeader --  Get next available header from an object
OBEX_ObjectReParseHeaders --  Allow the user to parse again the rx headers
OBEX_ObjectReadStream --  Read data from body stream
OBEX_ObjectSetRsp --  Sets the response to a received request.
OBEX_ObjectGetNonHdrData --  Get any data which was before headers
OBEX_ObjectSetNonHdrData --  Set data to send before headers
OBEX_ObjectSetHdrOffset --  Set headeroffset
OBEX_UnicodeToChar --  Simple unicode to char function.
OBEX_CharToUnicode --  Simple char to unicode function.
OBEX_ResponseToString --  Return a human understandable string from a response-code.
OBEX_GetResponseMessage --  Return a human understandable string from a response-code.
OBEX_SetCustomData --  Set customdata of an OBEX handle
OBEX_GetCustomData --  Read the customdata from an OBEX handle
InOBEX_ServerRegister --  Start listening for incoming connections
InOBEX_TransportConnect --  Connect Inet transport
IrOBEX_ServerRegister --  Start listening for incoming connections
IrOBEX_TransportConnect --  Connect Irda transport
BtOBEX_ServerRegister --  Start listening for incoming connections
BtOBEX_TransportConnect --  Connect Bluetooth transport