Fix up getUserData

This commit is contained in:
Alex Hultman
2018-12-26 14:35:09 +01:00
parent fb95abad71
commit de53d12bfe
3 changed files with 11 additions and 9 deletions
+2 -3
View File
@@ -40,11 +40,10 @@ private:
public:
/* Returns pointer to the per socket user data */
//template <typename K>
void *getUserData() {
WebSocketData *webSocketData = (WebSocketData *) static_dispatch(us_ssl_socket_ext, us_socket_ext)((SOCKET_TYPE *) this);
return nullptr;
/* We just have it overallocated by sizeof type */
return (webSocketData + 1);
}
/* See AsyncSocket */