MCS  0.3.3-alpha7
mcsmsg.cc
1 // ----------------------------------------------------------------------^
2 // Copyright (C) 2004, 2005, 2006, 2007, 2008 Giorgio Calderone
3 // (mailto: <gcalderone@ifc.inaf.it>)
4 //
5 // This file is part of MCS.
6 //
7 // MCS is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
11 //
12 // MCS is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with MCS; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 //
21 // ----------------------------------------------------------------------$
22 #include "mcs.hh"
24 vmsg[MSG_LOG_COMMAND] = "< %s";
25 vmsg[MSG_OK] = "OK.";
26 vmsg[MSG_WELCOME] = "Welcome at %s running %s ver. %s";
27 vmsg[MSG_WELCOMEUSER] = "Welcome user %s.";
28 vmsg[MSG_PASSWORD] = "OK.";
29 vmsg[MSG_DBNAME] = "Database changed to %s";
30 vmsg[MSG_DBHOST] = "Database host changed to %s";
31 vmsg[MSG_CONNECTED] = "Login successfull (%s)";
32 vmsg[MSG_DB_ROWSAFF] = "Rows affected: " MCS_SEP "%d" MCS_SEP;
33 vmsg[MSG_SENDFILE_START] = "Sending file " MCS_SEP "%s" MCS_SEP;
34 vmsg[MSG_SENDDATA_START] = "Sending data " MCS_SEP "%d" MCS_SEP;
35 vmsg[MSG_RECVFILE_START] = "OK, receiving file %s";
36 vmsg[MSG_RECVDATA_START] = "OK, receiving data";
37 vmsg[MSG_FILE_STOP] = "File received: %s";
38 vmsg[MSG_DATA_STOP] = "End of data.";
39 vmsg[MSG_OUT] = "%s";
40 vmsg[MSG_WAKE_UP] = "Wake up!";
41 vmsg[MSG_USERTHREAD_TERMINATING] = "Client thread is terminating...";
42 vmsg[MSG_CLIENT_ID] = "Client ID: " MCS_SEP "%d" MCS_SEP ", chunk size: " MCS_SEP "%d" MCS_SEP;
43 vmsg[MSG_BATCH_START] = "BATCH(%d) exec: %s";
44 vmsg[MSG_BATCH_STOP] = "BATCH(%d) finish.";
45 vmsg[MSG_DB_QRY_OK] = "Query executed successfully.";
46 vmsg[MSG_SCRIPT_START] = "Executing script: %s";
47 vmsg[MSG_SCRIPT_STOP] = "Script execution ended.";
48 vmsg[MSG_SQL_START] = "Executing SQL script: %s";
49 vmsg[MSG_SQL_STOP] = "SQL script execution ended.";
50 vmsg[MSG_DQR_START] = "Executing Data Query: %s";
51 vmsg[MSG_DQR_STOP] = "Rows returned: " MCS_SEP "%d" MCS_SEP;
52 vmsg[MSG_DB_FIELDS_DESCR] = "Sending fields details " MCS_SEP "%d" MCS_SEP;
53 vmsg[MSG_DB_FIELDS_DESCR2] = "End fields details";
54 vmsg[MSG_SYS_EXIT_STATUS] = "Exit status: %d";
55 vmsg[MSG_USER_HAS_GRANTS] = "User %s has grants : %d.";
56 vmsg[MSG_THREAD_CREATE] = "%s\t\t\t\tcreated";
57 vmsg[MSG_THREAD_DESTROY] = "%s\t\t\t\tdestroyed";
58 vmsg[MSG_SERVER_DIR] = "APPD set to: %s";
59 vmsg[MSG_SERVER_RUNNING] = "MCS Server running on %s:%d";
60 vmsg[MSG_CREATING_LOCAL] = "Creating new LocalThread...";
61 vmsg[MSG_CREATING_CLIENT] = "Creating new UserThread on ID=%d...";
62 vmsg[MSG_LOCAL_THREAD_DIED] = "Local thread died, shutting down server...";
63 vmsg[MSG_KILLING_CLIENT] = "Killing client %d...";
64 vmsg[MSG_KILLING_LOCAL] = "Killing local thread...";
65 vmsg[MSG_KILLING_ALL_CLIENTS] = "Killing all clients...";
66 vmsg[MSG_COPYING_DATA_OBJECTS] = "Copying Data objects in %s";
67 vmsg[MSG_NEW_RECORDSET] = "New RecordSet ready";
68 vmsg[MSG_FETCH_EOF] = "End of file reached";
69 vmsg[MSG_BYE] = "Bye.";
70 vmsg[MSG_DUMMY] = "";
71 vmsg[MSG_CANT_OPEN_FILE] = "Can't open file %s";
72 vmsg[MSG_INVALID_SWITCH] = "Invalid value for switch: %d";
73 vmsg[MSG_METHOD_MUST_BE_OVERLOADED] = "This virtual method needs to be overloaded: %s";
74 vmsg[MSG_NET_INTERFACE_NAME_NOT_EXISTS] = "Interface named %s doesn't exists";
75 vmsg[MSG_NET_INTERFACE_ID_NOT_EXISTS] = "Interface with index %d doesn't exists (total %d)";
76 vmsg[MSG_NET_INTERFACE_NOT_ACTIVE] = "Interface %s is not active";
77 vmsg[MSG_RETRIEVING_INTERFACE_FLAGS] = "Can't get flags for interface %s";
78 vmsg[MSG_RETRIEVING_HOSTNAME] = "Error calling gethostbyname(): %s";
79 vmsg[MSG_RETRIEVING_PEERNAME] = "Error calling getpeername(): %s";
80 vmsg[MSG_RETRIEVING_HOST_INFO] = "Error calling gethostbyaddr(): %s";
81 vmsg[MSG_CANT_CONNECT_TO_HOST] = "Can't connect to host: %s";
82 vmsg[MSG_TIME_OUT] = "Connection timed out";
83 vmsg[MSG_UNEXPECTED] = "Unexpected error. %s";
84 vmsg[MSG_CALLING_SELECT] = "Error calling select(): %s";
85 vmsg[MSG_CALLING_RECV] = "Error calling recv(): %s";
86 vmsg[MSG_CALLING_SEND] = "Error calling send(): %s";
87 vmsg[MSG_CLOSED_BY_PEER] = "Connection closed by peer";
88 vmsg[MSG_CALLING_BIND] = "Error calling bind(): %s";
89 vmsg[MSG_CALLING_LISTEN] = "Error calling listen(): %s";
90 vmsg[MSG_CALLING_PTHREAD_CREATE] = "Error calling pthread_create()";
91 vmsg[MSG_OUT_OF_MEMORY] = "Out of memory";
92 vmsg[MSG_DIRECTORY_NOT_FOUND] = "Directory not found: %s";
93 vmsg[MSG_CANT_MKDIR] = "Can't create directory: %s";
94 vmsg[MSG_CANT_RMDIR] = "Can't remove directory: %s";
95 vmsg[MSG_CANT_MKFIFO] = "Can't create FIFO file";
96 vmsg[MSG_CALLING_PIPE] = "Error calling pipe()";
97 vmsg[MSG_ERROR] = "Error: %s";
98 vmsg[MSG_SYNTAX] = "Syntax error: %s";
99 vmsg[MSG_WRONG_DIM_SPEC] = "Wrong index for dim %d: %d";
100 vmsg[MSG_TYPE_NOT_HANDLED] = "Data type not handled on field %d: %d";
101 vmsg[MSG_CONVERSION_STRING_INT] = "Conversion error, STRING to INT";
102 vmsg[MSG_CONVERSION_BLOB_INT] = "Conversion error, BLOB to INT";
103 vmsg[MSG_CONVERSION_STRING_FLOAT] = "Conversion error, STRING to FLOAT";
104 vmsg[MSG_CONVERSION_BLOB_FLOAT] = "Conversion error, BLOB to FLOAT";
105 vmsg[MSG_CONVERSION_DATETIME] = "Conversion error (not a date and/or time): %s";
106 vmsg[MSG_CONVERSION_BLOB_DATETIME] = "Conversion error, BLOB to DATETIME";
107 vmsg[MSG_CONVERSION_INT_BLOB] = "Conversion error, INTEGER to BLOB";
108 vmsg[MSG_CONVERSION_FLOAT_BLOB] = "Conversion error, DOUBLE to BLOB";
109 vmsg[MSG_CONVERSION_STRING_TOO_LONG] = "Conversion error: string too long";
110 vmsg[MSG_CONVERSION_STRING_BLOB] = "Conversion error, STRING to BLOB";
111 vmsg[MSG_CONVERSION_TIME_LINT] = "Conversion error, TIME to number shorter than INT";
112 vmsg[MSG_CONVERSION_NAN] = "Conversion error: not a number";
113 vmsg[MSG_NOT_A_BLOB] = "Not a BLOB object";
114 vmsg[MSG_BLOB_TOO_BIG] = "BLOB too big: %d";
115 vmsg[MSG_QUEUE_FULL] = "Queue is full";
116 vmsg[MSG_INDEX_OUT_RANGE] = "Index out of range: %d >= %d";
117 vmsg[MSG_MISSING_FIELD] = "Missing field: %s";
118 vmsg[MSG_INDEX_UNAVAILABLE] = "Index unavailable: %d";
119 vmsg[MSG_ENTRY_UNAVAILABLE] = "Entry not available: %s/%s";
120 vmsg[MSG_INDEX_LT_ZERO] = "Index less than zero: %d";
121 vmsg[MSG_SEND_ABORT_BY_RECEIVER] = "Sending aborted by receiver";
122 vmsg[MSG_PROTOCOL] = "Communication protocol error: " MCS_SEP "%s" MCS_SEP;
123 vmsg[MSG_NOT_ENOUGH_SPACE] = "Not enough space in buffer: %d > %d";
124 vmsg[MSG_CANT_ALLOCATE_MYSQL] = "Can't allocate MySQL connection handler";
125 vmsg[MSG_CANT_OPEN_MYSQL_CONNECTION] = "Can't connect to MySQL server: %s";
126 vmsg[MSG_USE_ONLY_WITH_STORERESULT] = "%s can be used only with storeResult()";
127 vmsg[MSG_MYSQL_ERROR] = "MySQL: %s";
128 vmsg[MSG_INVALID_POSITION] = "Invalid position: %d";
129 vmsg[MSG_BIND_FAILED] = "Bind failed: %s";
130 vmsg[MSG_STMT_NOT_YET_PREPARED] = "Statement not yet prepared";
131 vmsg[MSG_EMPTY_STRING] = "Empty string";
132 vmsg[MSG_CANT_GET_INFO_TABLE] = "Cannot get info for table: %s";
133 vmsg[MSG_CANT_LOCK_TABLE] = "Cannot lock table %s insert";
134 vmsg[MSG_CANT_UNLOCK_TABLE] = "Cannot unlock tables";
135 vmsg[MSG_STMT_WRONG_NUM_PARAM] = "Wrong number of parameter in prepared statement";
136 vmsg[MSG_NO_RESULT] = "No result available";
137 vmsg[MSG_NO_FIELDS] = "No fields in result";
138 vmsg[MSG_FITS_ERROR] = "FITS: %s";
139 vmsg[MSG_FITS_NOT_COMPILED] = "CFITSIO feature hasn't been compiled";
140 vmsg[MSG_UNKNOWN_FILE_TYPE] = "Unknown file type: %s";
141 vmsg[MSG_NOT_LOGIN] = "You didn't log in";
142 vmsg[MSG_MYSQL_DISABLED] = "MySQL feature is not enabled";
143 vmsg[MSG_GRANTS_LOGIN] = "You're not allowed to log in.";
144 vmsg[MSG_GRANTS_DB_SCRIPT] = "You're not allowed to execute DB scripts.";
145 vmsg[MSG_GRANTS_SCRIPT] = "You're not allowed to execute shell scripts.";
146 vmsg[MSG_GRANTS_QUERY] = "You're not allowed to execute direct queries.";
147 vmsg[MSG_GRANTS_BATCH] = "You're not allowed to execute BATCH commands.";
148 vmsg[MSG_GRANTS_ADMIN] = "You're not allowed to use administrative commands.";
149 vmsg[MSG_GRANTS_GET] = "You're not allowed to use retrieve files.";
150 vmsg[MSG_GRANTS_CANTGET_GRANTS] = "Can't retrieve grants information.";
151 vmsg[MSG_GRANTS_SYS] = "You're not allowed to issue system commands";
152 vmsg[MSG_GRANTS_PUT] = "You're not allowed to upload files.";
153 vmsg[MSG_DB_ERR_NOTACTIVATED] = "DB facility is not active";
154 vmsg[MSG_DB_NOT_COMPILED] = "MySQL feature hasn't been compiled";
155 vmsg[MSG_SCRIPT_ERROR] = "Program quit with code" MCS_SEP "%d" MCS_SEP ", see err file";
156 vmsg[MSG_NO_MORE_CLIENT_ALLOWED] = "No more clients allowed";
157 vmsg[MSG_OBJECT_MISSING] = "Object missing";
158 vmsg[MSG_SIZE_CHUNK] = "Size of a chunk cannot be less than one: %d";
159 vmsg[MSG_ALREADY_CONNECTED] = "You already logged in.";
160 vmsg[MSG_EXT_BIN_UNEXPECTED] = "Program abnormal termination";
161 vmsg[MSG_NOT_CONNECTED] = "Socket not connected";
162 vmsg[MSG_EXT_NOT_AVAILABLE] = "External program or script not available: %s";
163 vmsg[MSG_CHARACTER_NOT_ALLOWED] = "Character not allowed: '%s'";
164 vmsg[MSG_CANT_SET_SYNCHRO_STATE] = "Can't set synchro state now";
165 vmsg[MSG_NOT_A_RANDOM_ACCESS_RECORDSET] = "Can't use method %s on a non random access recordset";
166 vmsg[MSG_ALREADY_AT_BEGIN_OF_FILE] = "Already at begin of file";
167 vmsg[MSG_ALREADY_AT_END_OF_FILE] = "Already at end of file";
168 vmsg[MSG_NO_METAREC] = "No meta information has been given";
169 vmsg[MSG_DONT_KNOW_NROWS] = "Don't know how many records in the set";
170 vmsg[MSG_NO_SAME_META_INFO] = "Records doesn't have the same meta structure";
171 vmsg[MSG_INSERT_NOT_ALLOWED] = "Can't insert records while in fetch mode";
172 vmsg[MSG_FETCH_ERROR] = "Error while fetching record: %s";
173 vmsg[MSG_INCOMPATIBLE_SERIAL] = "Incompatible Serializable objects: %d > %d";
174 vmsg[MSG_CANT_READ_CERT] = "Can't read certificate file: %s";
175 vmsg[MSG_CANT_READ_KEY] = "Can't read key file: %s";
176 vmsg[MSG_SSL_CONNECT_ERROR] = "SSL connect error";
177 vmsg[MSG_SSL_ACCEPT_ERROR] = "SSL accept error";
178 vmsg[MSG_UNKNOWN_USERID] = "Unknown user id: %d";
179 vmsg[MSG_YET_RUNNING] = "The thread is yet running";
180 vmsg[MSG_FILE_ALREADY_EXISTS] = "File already exists: %s";
181 vmsg[MSG_PIPE_YET_OPENED] = "Pipe is already opened, call \"closeRead()\" first.";
182 vmsg[MSG_CANT_EXECUTE_FILE] = "Can't execute file: %s";
183 vmsg[MSG_CANT_BIND_AND_HAVE_DIMSPEC] = "The object can't be bind and have a dim spec";
184 vmsg[MSG_TOO_MANY_DIMSPEC] = "Too many dim spec, max is %d";
185 vmsg[MSG_VARYING_MUST_BE_LAST] = "There can be only one dynamic dimension and it must be the last";
186 vmsg[MSG_NO_DIM_ALLOWED_TO_CHANGE] = "No dim is allowed to change";
187 vmsg[MSG_NO_ABSOLUTE_PATH] = "Absolute paths are not allowed: %s";
188 vmsg[MSG_NO_DOUBLEDOT_PATH] = "The \"..\" string is not allowed: %s";
189 vmsg[MSG_CANT_FREE_EXTERNAL_BUF] = "Cannot free an externally-handled buffer";
190 vmsg[MSG_NO_WINDOWS_SELECTED] = "No window has been selected";
191 vmsg[MSG_PIPE_NOT_CREATED] = "Pipe has not been created.";
192 vmsg[MSG_VOT_UNHANDLED_CODE] = "Unhandled code: %d";
193 vmsg[MSG_VOT_PARSE_FAILED] = "Parse failed on file: %s";
194 vmsg[MSG_VOT_CANT_OPEN_FILE] = "Can't open file: %s";
195 vmsg[MSG_VOT_UNEXPECTED_NODE_TYPE] = "Unexpected node type: %d";
196 vmsg[MSG_VOT_NOT_AN_INTEGER] = "Not an integer value: %s";
197 vmsg[MSG_VOT_INVALID_NODETYPE] = "Invalid element type: %s";
198 vmsg[MSG_VOT_INVALID_DATATYPE] = "Invalid Datatype: %s";
199 vmsg[MSG_VOT_INVALID_ENCODINGTYPE] = "Invalid EncodingType: %s";
200 vmsg[MSG_VOT_INVALID_RESOURCE_TYPE] = "Invalid Resource_type: %s";
201 vmsg[MSG_VOT_INVALID_FIELD_TYPE] = "Invalid Field_type: %s";
202 vmsg[MSG_VOT_INVALID_VALUES_TYPE] = "Invalid Values_Type: %s";
203 vmsg[MSG_VOT_INVALID_LINK_CONTENT_ROLE] = "Invalid Link_content_role: %s";
204 vmsg[MSG_VOT_INVALID_STREAM_TYPE] = "Invalid Stream_type: %s";
205 vmsg[MSG_VOT_INVALID_STREAM_ACTUATE] = "Invalid Stream_actuate: %s";
206 vmsg[MSG_VOT_INVALID_COOSYS_SYSTEM] = "Invalid Coosys_system: %s";
207 vmsg[MSG_VOT_INVALID_INDEX] = "Invalid index: %d";
208 vmsg[MSG_VOT_UNEXPECTED_ATTRIBUTE] = "Unexpected attribute: %s";
209 vmsg[MSG_VOT_ROOT_IS_NOT_VOTABLE] = "Root node is not a VOTABLE element: %s";
210 vmsg[MSG_CURL_ERROR] = "Curl error: %s";
211 vmsg[MSG_CURL_INIT] = "Cannot initialize CURL library";
212 }
213 
214 
static void init_vmsg()
Initialize the vmsg array.
Definition: mcsmsg.cc:23
#define MCS_SEP
This character is used to split a message into "fields".
Definition: mcs.hh:273
Main include file for all MCS based applications.
static const char * vmsg[1000]
Static array of descriptive messages.
Definition: mcs.hh:841

mcslogo

MCS (My Customizable Server) ver. 0.3.3-alpha7
Documentation generated on Mon May 28 07:39:41 UTC 2018