#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <ctype.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/stat.h>
#include <dirent.h>
#include <errno.h>
#include <signal.h>
#include "config.h"
#include "resource.h"
#include "coap.h"
Go to the source code of this file.
|
void | handle_sigint (int signum) |
|
void | hnd_get_index (coap_context_t *ctx, struct coap_resource_t *resource, coap_address_t *peer, coap_pdu_t *request, str *token, coap_pdu_t *response) |
|
void | hnd_get_time (coap_context_t *ctx, struct coap_resource_t *resource, coap_address_t *peer, coap_pdu_t *request, str *token, coap_pdu_t *response) |
|
void | hnd_put_time (coap_context_t *ctx, struct coap_resource_t *resource, coap_address_t *peer, coap_pdu_t *request, str *token, coap_pdu_t *response) |
|
void | hnd_delete_time (coap_context_t *ctx, struct coap_resource_t *resource, coap_address_t *peer, coap_pdu_t *request, str *token, coap_pdu_t *response) |
|
void | hnd_get_async (coap_context_t *ctx, struct coap_resource_t *resource, coap_address_t *peer, coap_pdu_t *request, str *token, coap_pdu_t *response) |
|
void | check_async (coap_context_t *ctx, coap_tick_t now) |
|
void | init_resources (coap_context_t *ctx) |
|
void | usage (const char *program, const char *version) |
|
coap_context_t * | get_context (const char *node, const char *port) |
|
int | main (int argc, char **argv) |
|
#define COAP_RESOURCE_CHECK_TIME 2 |
Value:"This is a test server made with libcoap (see http://libcoap.sf.net)\n" \
"Copyright (C) 2010--2013 Olaf Bergmann <bergmann@tzi.org>\n\n"
Definition at line 56 of file server.c.
#define min |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) |
void handle_sigint |
( |
int |
signum | ) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
void usage |
( |
const char * |
program, |
|
|
const char * |
version |
|
) |
| |