OBEX_GetFD — Get FD
int OBEX_GetFD ( | self) ; |
obex_t * | self; |
Returns the filedescriptor of the transport. Returns -1 on error. Note that if you for example have a custom transport, no fd is available.
The returned filehandle can be used to do select
on, before
calling OBEX_HandleInput
There is one subtelty about this function. When the OBEX connection is established, it returns the connection filedescriptor, while for an unconnected server it will return the listening filedescriptor. This mean that after receiving an incomming connection, you need to call this function again.