server: proxy: support auto reconnect
This commit is contained in:
parent
32913850d5
commit
b6730ea31e
@ -149,6 +149,7 @@ static BOOL pf_client_pre_connect(freerdp* instance)
|
|||||||
settings->SupportDisplayControl = config->DisplayControl;
|
settings->SupportDisplayControl = config->DisplayControl;
|
||||||
settings->DynamicResolutionUpdate = config->DisplayControl;
|
settings->DynamicResolutionUpdate = config->DisplayControl;
|
||||||
|
|
||||||
|
settings->AutoReconnectionEnabled = TRUE;
|
||||||
/**
|
/**
|
||||||
* Register the channel listeners.
|
* Register the channel listeners.
|
||||||
* They are required to set up / tear down channels if they are loaded.
|
* They are required to set up / tear down channels if they are loaded.
|
||||||
|
@ -141,6 +141,14 @@ static BOOL pf_client_send_pointer_cached(rdpContext* context,
|
|||||||
return ps->update->pointer->PointerCached(ps, pointer_cached);
|
return ps->update->pointer->PointerCached(ps, pointer_cached);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static BOOL pf_client_save_session_info(rdpContext* context, UINT32 type, void* data)
|
||||||
|
{
|
||||||
|
pClientContext* pc = (pClientContext*) context;
|
||||||
|
proxyData* pdata = pc->pdata;
|
||||||
|
rdpContext* ps = (rdpContext*)pdata->ps;
|
||||||
|
return ps->update->SaveSessionInfo(ps, type, data);
|
||||||
|
}
|
||||||
|
|
||||||
void pf_client_register_update_callbacks(rdpUpdate* update)
|
void pf_client_register_update_callbacks(rdpUpdate* update)
|
||||||
{
|
{
|
||||||
update->BeginPaint = pf_client_begin_paint;
|
update->BeginPaint = pf_client_begin_paint;
|
||||||
@ -148,6 +156,7 @@ void pf_client_register_update_callbacks(rdpUpdate* update)
|
|||||||
update->BitmapUpdate = pf_client_bitmap_update;
|
update->BitmapUpdate = pf_client_bitmap_update;
|
||||||
update->DesktopResize = pf_client_desktop_resize;
|
update->DesktopResize = pf_client_desktop_resize;
|
||||||
update->RemoteMonitors = pf_client_remote_monitors;
|
update->RemoteMonitors = pf_client_remote_monitors;
|
||||||
|
update->SaveSessionInfo = pf_client_save_session_info;
|
||||||
|
|
||||||
update->pointer->PointerSystem = pf_client_send_pointer_system;
|
update->pointer->PointerSystem = pf_client_send_pointer_system;
|
||||||
update->pointer->PointerPosition = pf_client_send_pointer_position;
|
update->pointer->PointerPosition = pf_client_send_pointer_position;
|
||||||
|
Loading…
Reference in New Issue
Block a user