2012-12-14 09:25:48 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Error Codes
|
|
|
|
*
|
|
|
|
* Copyright 2012 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
|
2012-04-13 16:00:56 +04:00
|
|
|
*
|
2012-12-14 09:25:48 +04:00
|
|
|
* 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.
|
2012-04-13 16:00:56 +04:00
|
|
|
*/
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#ifndef FREERDP_ERROR_H
|
|
|
|
#define FREERDP_ERROR_H
|
2012-04-13 16:00:56 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2012-05-22 00:01:24 +04:00
|
|
|
|
2012-04-13 16:00:56 +04:00
|
|
|
/**
|
2012-10-09 10:31:28 +04:00
|
|
|
* This static variable holds an error code if the return value from connect is FALSE.
|
2012-04-13 16:00:56 +04:00
|
|
|
* This variable is always set to 0 in the beginning of the connect sequence.
|
|
|
|
* The returned code can be used to inform the user of the detailed connect error.
|
|
|
|
* The value can hold one of the defined error codes below OR an error according to errno
|
|
|
|
*/
|
2012-05-22 00:01:24 +04:00
|
|
|
|
|
|
|
extern int connectErrorCode;
|
|
|
|
|
2012-04-13 16:00:56 +04:00
|
|
|
#define ERRORSTART 10000
|
|
|
|
#define PREECONNECTERROR ERRORSTART + 1
|
|
|
|
#define UNDEFINEDCONNECTERROR ERRORSTART + 2
|
|
|
|
#define POSTCONNECTERROR ERRORSTART + 3
|
|
|
|
#define DNSERROR ERRORSTART + 4 /* general DNS ERROR */
|
|
|
|
#define DNSNAMENOTFOUND ERRORSTART + 5 /* EAI_NONAME */
|
|
|
|
#define CONNECTERROR ERRORSTART + 6 /* a connect error if errno is not define during tcp connect */
|
|
|
|
#define MCSCONNECTINITIALERROR ERRORSTART + 7
|
|
|
|
#define TLSCONNECTERROR ERRORSTART + 8
|
|
|
|
#define AUTHENTICATIONERROR ERRORSTART + 9
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#endif /* FREERDP_ERROR_H */
|