FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
proxy_server.h
1
20#ifndef FREERDP_SERVER_PROXY_SERVER_H
21#define FREERDP_SERVER_PROXY_SERVER_H
22
23#include <freerdp/api.h>
24#include <freerdp/server/proxy/proxy_config.h>
25#include <freerdp/server/proxy/proxy_modules_api.h>
26
27#ifdef __cplusplus
28extern "C"
29{
30#endif
31
32 typedef struct proxy_server proxyServer;
33
39 FREERDP_API void pf_server_free(proxyServer* server);
40
48 WINPR_ATTR_MALLOC(pf_server_free, 1)
49 FREERDP_API proxyServer* pf_server_new(const proxyConfig* config);
50
62 FREERDP_API BOOL pf_server_add_module(proxyServer* server, proxyModuleEntryPoint ep,
63 void* userdata);
64
72 FREERDP_API BOOL pf_server_start(proxyServer* server);
73
82 FREERDP_API BOOL pf_server_start_from_socket(proxyServer* server, int socket);
83
92 FREERDP_API BOOL pf_server_start_with_peer_socket(proxyServer* server, int socket);
93
99 FREERDP_API void pf_server_stop(proxyServer* server);
100
109 FREERDP_API BOOL pf_server_run(proxyServer* server);
110
111#ifdef __cplusplus
112}
113#endif
114
115#endif /* FREERDP_SERVER_PROXY_SERVER_H */