X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwebsock.h;h=5066333ded64a90e2cea419fc1fee96376ac3cc5;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=da44a88bebc65b7c7eacfa4af0d082aec132ac29;hpb=2243a0dd1adc75530bed663db808971789729df3;p=src%2Fapp-framework-binder.git diff --git a/src/websock.h b/src/websock.h index da44a88b..5066333d 100644 --- a/src/websock.h +++ b/src/websock.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,3 +75,7 @@ extern int websock_dispatch(struct websock *ws, int loop); extern struct websock *websock_create_v13(const struct websock_itf *itf, void *closure); extern void websock_destroy(struct websock *ws); +extern void websock_set_default_max_length(size_t maxlen); +extern void websock_set_max_length(struct websock *ws, size_t maxlen); + +extern const char *websocket_explain_error(uint16_t code);