This is a http(s) server that supports also websocket. It sends back any data sent to it over a websocket. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
19 lines
407 B
C
19 lines
407 B
C
/*
|
|
* Copyright (c) 2017 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#define MAX_DBG_PRINT 64
|
|
|
|
void start_server(void);
|
|
void stop_server(void);
|
|
|
|
struct net_pkt *build_reply_pkt(const char *name,
|
|
struct net_app_ctx *ctx,
|
|
struct net_pkt *pkt);
|
|
void pkt_sent(struct net_app_ctx *ctx, int status,
|
|
void *token, void *user_data);
|
|
void panic(const char *msg);
|
|
void quit(void);
|