2011-07-10 01:48:10 -04:00
|
|
|
/**
|
2012-10-08 23:02:04 -04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-07-10 01:48:10 -04:00
|
|
|
* Connection Sequence
|
|
|
|
*
|
|
|
|
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2017-06-06 14:01:41 +02:00
|
|
|
#ifndef FREERDP_LIB_CORE_CONNECTION_H
|
|
|
|
#define FREERDP_LIB_CORE_CONNECTION_H
|
2011-07-10 01:48:10 -04:00
|
|
|
|
2011-07-10 15:34:43 -04:00
|
|
|
#include "rdp.h"
|
2011-07-10 01:48:10 -04:00
|
|
|
#include "tpkt.h"
|
2011-07-10 12:10:24 -04:00
|
|
|
#include "tpdu.h"
|
2011-07-10 01:48:10 -04:00
|
|
|
#include "nego.h"
|
|
|
|
#include "mcs.h"
|
2011-07-25 13:52:48 -04:00
|
|
|
#include "activation.h"
|
2011-07-10 01:48:10 -04:00
|
|
|
|
|
|
|
#include <freerdp/settings.h>
|
2016-08-10 09:12:55 +02:00
|
|
|
#include <freerdp/api.h>
|
2011-07-10 01:48:10 -04:00
|
|
|
|
2018-06-19 17:28:22 +02:00
|
|
|
enum CLIENT_CONNECTION_STATE
|
|
|
|
{
|
|
|
|
CLIENT_STATE_INITIAL,
|
|
|
|
CLIENT_STATE_PRECONNECT_PASSED,
|
2018-07-10 12:04:27 +02:00
|
|
|
CLIENT_STATE_POSTCONNECT_PASSED
|
2018-06-19 17:28:22 +02:00
|
|
|
};
|
|
|
|
|
2016-08-10 09:12:55 +02:00
|
|
|
FREERDP_LOCAL BOOL rdp_client_connect(rdpRdp* rdp);
|
|
|
|
FREERDP_LOCAL BOOL rdp_client_disconnect(rdpRdp* rdp);
|
2018-04-11 09:30:40 +02:00
|
|
|
FREERDP_LOCAL BOOL rdp_client_disconnect_and_clear(rdpRdp* rdp);
|
2016-08-10 09:12:55 +02:00
|
|
|
FREERDP_LOCAL BOOL rdp_client_reconnect(rdpRdp* rdp);
|
|
|
|
FREERDP_LOCAL BOOL rdp_client_redirect(rdpRdp* rdp);
|
2019-11-06 15:24:51 +01:00
|
|
|
FREERDP_LOCAL BOOL rdp_client_connect_mcs_channel_join_confirm(rdpRdp* rdp, wStream* s);
|
2016-08-10 09:12:55 +02:00
|
|
|
FREERDP_LOCAL BOOL rdp_client_connect_auto_detect(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL int rdp_client_connect_license(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL int rdp_client_connect_demand_active(rdpRdp* rdp, wStream* s);
|
2022-10-21 09:53:24 +02:00
|
|
|
FREERDP_LOCAL int rdp_client_connect_confirm_active(rdpRdp* rdp, wStream* s);
|
2021-09-03 12:17:30 +02:00
|
|
|
FREERDP_LOCAL int rdp_client_transition_to_state(rdpRdp* rdp, CONNECTION_STATE state);
|
2021-09-03 08:17:27 +02:00
|
|
|
|
2021-09-10 09:06:35 +02:00
|
|
|
FREERDP_LOCAL CONNECTION_STATE rdp_get_state(const rdpRdp* rdp);
|
2021-09-03 09:12:23 +02:00
|
|
|
FREERDP_LOCAL const char* rdp_state_string(CONNECTION_STATE state);
|
2011-07-21 15:10:53 -04:00
|
|
|
|
2016-08-10 09:12:55 +02:00
|
|
|
FREERDP_LOCAL BOOL rdp_server_accept_nego(rdpRdp* rdp, wStream* s);
|
2019-11-06 15:24:51 +01:00
|
|
|
FREERDP_LOCAL BOOL rdp_server_accept_mcs_connect_initial(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL BOOL rdp_server_accept_mcs_erect_domain_request(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL BOOL rdp_server_accept_mcs_attach_user_request(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL BOOL rdp_server_accept_mcs_channel_join_request(rdpRdp* rdp, wStream* s);
|
2020-02-21 09:17:00 +01:00
|
|
|
FREERDP_LOCAL BOOL rdp_server_accept_confirm_active(rdpRdp* rdp, wStream* s, UINT16 pduLength);
|
2016-08-10 09:12:55 +02:00
|
|
|
FREERDP_LOCAL BOOL rdp_server_establish_keys(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL BOOL rdp_server_reactivate(rdpRdp* rdp);
|
2022-03-18 10:57:47 +01:00
|
|
|
FREERDP_LOCAL BOOL rdp_server_transition_to_state(rdpRdp* rdp, CONNECTION_STATE state);
|
2021-09-03 08:17:27 +02:00
|
|
|
FREERDP_LOCAL const char* rdp_get_state_string(rdpRdp* rdp);
|
|
|
|
|
|
|
|
FREERDP_LOCAL const char* rdp_client_connection_state_string(int state);
|
2011-08-19 09:54:43 +08:00
|
|
|
|
2021-09-22 14:27:21 +02:00
|
|
|
FREERDP_LOCAL BOOL rdp_channels_from_mcs(rdpSettings* settings, const rdpRdp* rdp);
|
|
|
|
|
2017-06-06 14:01:41 +02:00
|
|
|
#endif /* FREERDP_LIB_CORE_CONNECTION_H */
|