OBEX_ServerAccept

Name

OBEX_ServerAccept --  Accept an incoming connection

Synopsis

obex_t * OBEX_ServerAccept (obex_t * server, obex_event_t eventcb, void * data);

Arguments

server

OBEX handle

eventcb

Event callback for client (use NULL for same as server)

data

Userdata for client (use NULL for same as server)

Description

Create a new OBEX instance to handle the incomming connection. The old OBEX instance will continue to listen for new connections. The two OBEX instances become totally independant from each other.

This function should be called after the library generates an OBEX_EV_ACCEPTHINT event to the user, but before the user start to pull data out of the incomming connection.

Using this function also requires that the OBEX handle was created with the OBEX_FL_KEEPSERVER flag set while calling OBEX_Init.

Returns the client instance or NULL for error.