User Manual
Table Of Contents
- INTRODUCTION
- CONTROLLING THE ACCESS SERVER
- CONFIGURATION
- USING THE SYSTEM
- BLUETOOTH TECHNOLOGY OVERVIEW
- INTRODUCTION TO SDK
- INSTALLING THE WRAP SOFTWARE DEVELOPMENT ENVIRONMENT
- CREATING WRAP APPLICATIONS
- BLUETOOTH SERVER SOCKET INTERFACE
- I/O API
- ABOUT BLUEGIGA
- APPENDIX A – WRAP DIRECTORY STRUCTURE
USER'S AND DEVELOPER'S GUIDE WRAP MULTIRADIO ACCESS SERVER
9.8.2
LIBOBEXCLIENT
int obex_connect(char *target);
Connect to target UUID. Target can be NULL (Object Push connect). Returns 0 if no
errors, -1 if timeout, -2 if broken socket, >0 if OBEX error (see OBEX specification for
OBEX Response Codes).
int obex_disconnect(void);
Disconnect. Returns 0 if no errors, -1 if timeout, -2 if broken socket, >0 if OBEX error
(see OBEX specification for OBEX Response Codes).
int obex_put(char *name, char *type, char *data, long length, FILE *fdata);
Put local file / data block to remote.
name Remote file name. Can be NULL.
type Remote MIME type. Can be NULL.
data/length Pointer to data block and length. Can be NULL/0.
fdata File handle for local file, if data was NULL.
Returns 0 if no errors, -1 if timeout, -2 if broken socket, >0 the OBEX error code (see
OBEX specification).
signed long obex_get(char *name, char *type, char *data, long max_length, FILE *fdata);
Get remote file to local.
name Remote file name. Can be NULL.
type Remote MIME type. Can be NULL.
data/max_length Pointer to data block and length. Can be NULL/0.
fdata File handle for local file, if data was NULL.
Returns >=0 (number of bytes received) if no errors, -1 if timeout, -2 if broken
socket, <0 if OBEX error (see OBEX specification for OBEX Response Codes).
int obex_setpath(char *name, int flags);
Setpath to name with flags. Returns 0 if no errors, -1 if timeout, -2 if broken socket, >0
if OBEX error (see OBEX specification for OBEX Response Codes).
Bluegiga Proprietary, Copyright © Bluegiga Technologies 2001-2004 87 (94)