FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
wst.h
1
20#ifndef FREERDP_LIB_CORE_GATEWAY_WEBSOCKET_TRANSPORT_H
21#define FREERDP_LIB_CORE_GATEWAY_WEBSOCKET_TRANSPORT_H
22
23#include <winpr/wtypes.h>
24#include <winpr/stream.h>
25#include <winpr/winpr.h>
26
27/* needed for BIO */
28#include <openssl/ssl.h>
29
30typedef struct rdp_wst rdpWst;
31
32FREERDP_LOCAL void wst_free(rdpWst* wst);
33
34WINPR_ATTR_MALLOC(wst_free, 1)
35FREERDP_LOCAL rdpWst* wst_new(rdpContext* context);
36
37FREERDP_LOCAL BIO* wst_get_front_bio_and_take_ownership(rdpWst* wst);
38
39FREERDP_LOCAL BOOL wst_connect(rdpWst* wst, DWORD timeout);
40FREERDP_LOCAL DWORD wst_get_event_handles(rdpWst* wst, HANDLE* events, DWORD count);
41
42#endif /* FREERDP_LIB_CORE_GATEWAY_WEBSOCKET_TRANSPORT_H */