1 /** 2 * xrdp: A Remote Desktop Protocol server. 3 * 4 * Copyright (C) Jay Sorg 2004-2012 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 /** 20 * 21 * @file libscp_commands.h 22 * @brief libscp data types definitions 23 * @author Simone Fedele 24 * 25 */ 26 27 #ifndef LIBSCP_COMMANDS_H 28 #define LIBSCP_COMMANDS_H 29 30 #include "libscp_commands_mng.h" 31 32 /* Message numbers 33 * SCP_CMD_* are client to server, SCP_REPLY_* are server to client */ 34 35 /* Login sequence */ 36 #define SCP_CMD_LOGIN 1 37 #define SCP_REPLY_LOGIN_DENIED 2 38 #define SCP_REPLY_REREQUEST_CREDS 3 39 #define SCP_CMD_RESEND_CREDS 4 40 #define SCP_REPLY_CHANGE_PASSWD 20 41 #define SCP_REPLY_NEW_SESSION 30 42 #define SCP_REPLY_USER_SESSIONS_EXIST 40 43 44 /* List sessions */ 45 #define SCP_CMD_GET_SESSION_LIST 41 46 #define SCP_REPLY_SESSIONS_INFO 42 47 #define SCP_CMD_SELECT_SESSION 43 48 #define SCP_CMD_SELECT_SESSION_CANCEL 44 49 50 /* Other */ 51 #define SCP_CMD_FORCE_NEW_CONN 45 52 #define SCP_REPLY_SESSION_RECONNECTED 46 53 #define SCP_REPLY_CMD_CONN_ERROR 0xFFFF 54 55 #endif 56