/*********************************************************
- * Copyright (C) 2003-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2003-2022 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
const char *httpRequest,
char **httpResponse);
+typedef int (*AsyncWebSocketHandoffSocketFn) (AsyncSocket *asock, void *cbData,
+ void *buf, uint32 bufLen,
+ uint32 currentPos);
+
/*
* Listen on port and fire callback with new asock
*/
void *clientData,
AsyncSocketPollParams *pollParams,
void *sslCtx,
- AsyncWebSocketHandleUpgradeRequestFn handleUpgradeRequestFn);
+ AsyncWebSocketHandleUpgradeRequestFn handleUpgradeRequestFn,
+ AsyncWebSocketHandoffSocketFn alpnCb,
+ const char* alpn);
AsyncSocket *AsyncSocket_RegisterListenWebSocket(AsyncSocket *asock,
const char *addrStr,
unsigned int port,