Soletta™ Framework
|
Routines to create servers talking the OIC protocol. More...
Go to the source code of this file.
Data Structures | |
struct | sol_oic_resource_type |
structure defining the type of a resource. More... | |
Macros | |
#define | SOL_OIC_RESOURCE_TYPE_API_VERSION (1) |
Typedefs | |
typedef struct sol_oic_resource_type | sol_oic_resource_type |
structure defining the type of a resource. More... | |
typedef struct sol_oic_server_resource | sol_oic_server_resource |
Opaque handler for a server resource. More... | |
Functions | |
struct sol_oic_response * | sol_oic_server_notification_new (struct sol_oic_server_resource *resource) |
Create a notification response to send to observing clients of resource. More... | |
int | sol_oic_server_notify (struct sol_oic_response *notification) |
Send notification to all observing clients. More... | |
struct sol_oic_server_resource * | sol_oic_server_register_resource (const struct sol_oic_resource_type *rt, const void *handler_data, enum sol_oic_resource_flag flags) |
Add resource to OIC server. More... | |
struct sol_oic_map_reader * | sol_oic_server_request_get_reader (struct sol_oic_request *request) |
Get the packet reader from a request. More... | |
void | sol_oic_server_response_free (struct sol_oic_response *response) |
Free the response and all memory hold by it. More... | |
struct sol_oic_map_writer * | sol_oic_server_response_get_writer (struct sol_oic_response *response) |
Get the packet writer from a response. More... | |
struct sol_oic_response * | sol_oic_server_response_new (struct sol_oic_request *request) |
Create a new response to send a reply to request. More... | |
int | sol_oic_server_send_response (struct sol_oic_request *request, struct sol_oic_response *response, enum sol_coap_response_code code) |
Send a response as a reply to a request. More... | |
void | sol_oic_server_unregister_resource (struct sol_oic_server_resource *resource) |
Delete a resource from the OIC server. More... | |
Routines to create servers talking the OIC protocol.
#define SOL_OIC_RESOURCE_TYPE_API_VERSION (1) |
Referenced by register_light_resource_type().