FreeRDP
|
#include <freerdp/api.h>
#include <freerdp/server/proxy/proxy_config.h>
#include <freerdp/server/proxy/proxy_modules_api.h>
Functions | |
FREERDP_API void | pf_server_free (proxyServer *server) |
pf_server_free Cleans up a (stopped) proxy server instance. More... | |
FREERDP_API proxyServer * | pf_server_new (const proxyConfig *config) |
pf_server_new Creates a new proxy server instance More... | |
FREERDP_API BOOL | pf_server_add_module (proxyServer *server, proxyModuleEntryPoint ep, void *userdata) |
pf_server_add_module Allows registering proxy modules that are build-in instead of shipped as separate module loaded at runtime. More... | |
FREERDP_API BOOL | pf_server_start (proxyServer *server) |
pf_server_start Starts the proxy, binding the configured port. More... | |
FREERDP_API BOOL | pf_server_start_from_socket (proxyServer *server, int socket) |
pf_server_start_from_socket Starts the proxy using an existing bound socket More... | |
FREERDP_API BOOL | pf_server_start_with_peer_socket (proxyServer *server, int socket) |
pf_server_start_with_peer_socket Use existing peer socket More... | |
FREERDP_API void | pf_server_stop (proxyServer *server) |
pf_server_stop Stops a server instance asynchronously. Can be called from any thread to stop a running server instance. More... | |
FREERDP_API BOOL | pf_server_run (proxyServer *server) |
pf_server_run This (blocking) function runs the main loop of the proxy. More... | |
FREERDP_API BOOL pf_server_add_module | ( | proxyServer * | server, |
proxyModuleEntryPoint | ep, | ||
void * | userdata | ||
) |
pf_server_add_module Allows registering proxy modules that are build-in instead of shipped as separate module loaded at runtime.
server | A proxy instance to add the module to. Must NOT be NULL |
ep | The proxy entry function to add. Must NOT be NULL |
userdata | Custom data for the module. May be NULL |
FREERDP_API void pf_server_free | ( | proxyServer * | server | ) |
pf_server_free Cleans up a (stopped) proxy server instance.
server | The proxy server to clean up. Might be NULL. |
FREERDP_API proxyServer* pf_server_new | ( | const proxyConfig * | config | ) |
pf_server_new Creates a new proxy server instance
config | The proxy server configuration to use. Must NOT be NULL. |
FREERDP_API BOOL pf_server_run | ( | proxyServer * | server | ) |
pf_server_run This (blocking) function runs the main loop of the proxy.
server | The server instance. Must NOT be NULL. |
FREERDP_API BOOL pf_server_start | ( | proxyServer * | server | ) |
pf_server_start Starts the proxy, binding the configured port.
server | The server instance. Must NOT be NULL. |
FREERDP_API BOOL pf_server_start_from_socket | ( | proxyServer * | server, |
int | socket | ||
) |
pf_server_start_from_socket Starts the proxy using an existing bound socket
server | The server instance. Must NOT be NULL. |
socket | The bound socket to wait for events on. |
FREERDP_API BOOL pf_server_start_with_peer_socket | ( | proxyServer * | server, |
int | socket | ||
) |
pf_server_start_with_peer_socket Use existing peer socket
server | The server instance. Must NOT be NULL. |
socket | Ready to use peer socket |
FREERDP_API void pf_server_stop | ( | proxyServer * | server | ) |
pf_server_stop Stops a server instance asynchronously. Can be called from any thread to stop a running server instance.
server | A pointer to the server instance to stop. May be NULL. |