2011-07-10 09:48:10 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Client
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONNECTION_H
|
|
|
|
#define __CONNECTION_H
|
|
|
|
|
2011-07-10 23:34:43 +04:00
|
|
|
#include "rdp.h"
|
2011-07-10 09:48:10 +04:00
|
|
|
#include "tpkt.h"
|
2011-07-10 20:10:24 +04:00
|
|
|
#include "tpdu.h"
|
2011-07-10 09:48:10 +04:00
|
|
|
#include "nego.h"
|
|
|
|
#include "mcs.h"
|
|
|
|
#include "transport.h"
|
2011-07-25 21:52:48 +04:00
|
|
|
#include "activation.h"
|
2011-07-10 09:48:10 +04:00
|
|
|
|
|
|
|
#include <freerdp/settings.h>
|
|
|
|
#include <freerdp/utils/memory.h>
|
|
|
|
|
2011-08-18 19:15:28 +04:00
|
|
|
enum CONNECTION_STATE
|
|
|
|
{
|
|
|
|
CONNECTION_STATE_INITIAL = 0,
|
2011-08-19 19:56:47 +04:00
|
|
|
CONNECTION_STATE_NEGO,
|
2011-08-19 22:03:48 +04:00
|
|
|
CONNECTION_STATE_MCS_CONNECT,
|
|
|
|
CONNECTION_STATE_MCS_ERECT_DOMAIN,
|
2011-08-20 10:05:03 +04:00
|
|
|
CONNECTION_STATE_MCS_ATTACH_USER,
|
2011-08-22 11:03:58 +04:00
|
|
|
CONNECTION_STATE_MCS_CHANNEL_JOIN,
|
2012-01-25 20:08:10 +04:00
|
|
|
CONNECTION_STATE_ESTABLISH_KEYS,
|
2011-08-20 14:22:14 +04:00
|
|
|
CONNECTION_STATE_LICENSE,
|
2011-08-22 11:03:58 +04:00
|
|
|
CONNECTION_STATE_CAPABILITY,
|
2011-12-19 00:15:48 +04:00
|
|
|
CONNECTION_STATE_FINALIZATION,
|
2011-08-20 14:22:14 +04:00
|
|
|
CONNECTION_STATE_ACTIVE
|
2011-08-18 19:15:28 +04:00
|
|
|
};
|
|
|
|
|
2011-07-18 07:16:31 +04:00
|
|
|
boolean rdp_client_connect(rdpRdp* rdp);
|
2011-09-04 00:36:27 +04:00
|
|
|
boolean rdp_client_redirect(rdpRdp* rdp);
|
2011-08-22 11:03:58 +04:00
|
|
|
boolean rdp_client_connect_mcs_connect_response(rdpRdp* rdp, STREAM* s);
|
|
|
|
boolean rdp_client_connect_mcs_attach_user_confirm(rdpRdp* rdp, STREAM* s);
|
2013-01-24 15:40:24 +04:00
|
|
|
void rdp_clear_joined_channels(rdpRdp* rdp);
|
2011-08-22 11:03:58 +04:00
|
|
|
boolean rdp_client_connect_mcs_channel_join_confirm(rdpRdp* rdp, STREAM* s);
|
|
|
|
boolean rdp_client_connect_license(rdpRdp* rdp, STREAM* s);
|
|
|
|
boolean rdp_client_connect_demand_active(rdpRdp* rdp, STREAM* s);
|
2011-12-19 00:15:48 +04:00
|
|
|
boolean rdp_client_connect_finalize(rdpRdp* rdp);
|
2011-07-21 23:10:53 +04:00
|
|
|
|
2011-08-19 05:54:43 +04:00
|
|
|
boolean rdp_server_accept_nego(rdpRdp* rdp, STREAM* s);
|
2011-08-19 13:39:37 +04:00
|
|
|
boolean rdp_server_accept_mcs_connect_initial(rdpRdp* rdp, STREAM* s);
|
2011-08-19 22:03:48 +04:00
|
|
|
boolean rdp_server_accept_mcs_erect_domain_request(rdpRdp* rdp, STREAM* s);
|
|
|
|
boolean rdp_server_accept_mcs_attach_user_request(rdpRdp* rdp, STREAM* s);
|
2011-08-20 10:05:03 +04:00
|
|
|
boolean rdp_server_accept_mcs_channel_join_request(rdpRdp* rdp, STREAM* s);
|
2012-01-25 20:08:10 +04:00
|
|
|
boolean rdp_server_accept_client_keys(rdpRdp* rdp, STREAM* s);
|
2011-08-20 14:22:14 +04:00
|
|
|
boolean rdp_server_accept_client_info(rdpRdp* rdp, STREAM* s);
|
2011-08-21 11:52:44 +04:00
|
|
|
boolean rdp_server_accept_confirm_active(rdpRdp* rdp, STREAM* s);
|
2011-09-06 13:19:16 +04:00
|
|
|
boolean rdp_server_reactivate(rdpRdp* rdp);
|
2011-08-19 05:54:43 +04:00
|
|
|
|
2011-07-10 09:48:10 +04:00
|
|
|
#endif /* __CONNECTION_H */
|