From 92638847a3b7f51fb795c7986b793536ece6beee Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 19 May 2019 11:03:45 +0200 Subject: Documentation & peer discovery API --- builtins.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 builtins.c (limited to 'builtins.c') diff --git a/builtins.c b/builtins.c new file mode 100644 index 0000000..2e3d285 --- /dev/null +++ b/builtins.c @@ -0,0 +1,11 @@ +static ws_peer_info default_peer = { + 0 +}; + +ws_peer_info backend_defaultpeer_query(char* endpoint, size_t protocols, char** protocol, size_t headers, ws_http_header* header, websocket* ws){ + //return a copy of the default peer + ws_peer_info peer = { + 0 + }; + return peer; +} -- cgit v1.2.3