mcsmsg.cc

00001 // ----------------------------------------------------------------------^
00002 // Copyright (C) 2004, 2005, 2006, 2007, 2008 Giorgio Calderone
00003 // (mailto: <gcalderone@ifc.inaf.it>)
00004 // 
00005 // This file is part of MCS.
00006 // 
00007 // MCS is free software; you can redistribute it and/or modify
00008 // it under the terms of the GNU General Public License as published by
00009 // the Free Software Foundation; either version 2 of the License, or
00010 // (at your option) any later version.
00011 // 
00012 // MCS is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 // 
00017 // You should have received a copy of the GNU General Public License
00018 // along with MCS; if not, write to the Free Software
00019 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 // 
00021 // ----------------------------------------------------------------------$
00022 #include "mcs.hh"
00023 void mcs::Event::init_vmsg() {
00024 vmsg[MSG_LOG_COMMAND] = "< %s";
00025 vmsg[MSG_OK] = "OK.";
00026 vmsg[MSG_WELCOME] = "Welcome at %s running %s ver. %s";
00027 vmsg[MSG_WELCOMEUSER] = "Welcome user %s.";
00028 vmsg[MSG_PASSWORD] = "OK.";
00029 vmsg[MSG_DBNAME] = "Database changed to %s";
00030 vmsg[MSG_DBHOST] = "Database host changed to %s";
00031 vmsg[MSG_CONNECTED] = "Login successfull (%s)";
00032 vmsg[MSG_DB_ROWSAFF] = "Rows affected: " MCS_SEP "%d" MCS_SEP;
00033 vmsg[MSG_SENDFILE_START] = "Sending file " MCS_SEP "%s" MCS_SEP;
00034 vmsg[MSG_SENDDATA_START] = "Sending data " MCS_SEP "%d" MCS_SEP;
00035 vmsg[MSG_RECVFILE_START] = "OK, receiving file %s";
00036 vmsg[MSG_RECVDATA_START] = "OK, receiving data";
00037 vmsg[MSG_FILE_STOP] = "File received: %s";
00038 vmsg[MSG_DATA_STOP] = "End of data.";
00039 vmsg[MSG_OUT] = "%s";
00040 vmsg[MSG_WAKE_UP] = "Wake up!";
00041 vmsg[MSG_USERTHREAD_TERMINATING] = "Client thread is terminating...";
00042 vmsg[MSG_CLIENT_ID] = "Client ID: " MCS_SEP "%d" MCS_SEP ", chunk size: " MCS_SEP "%d" MCS_SEP;
00043 vmsg[MSG_BATCH_START] = "BATCH(%d) exec: %s";
00044 vmsg[MSG_BATCH_STOP] = "BATCH(%d) finish.";
00045 vmsg[MSG_DB_QRY_OK] = "Query executed successfully.";
00046 vmsg[MSG_SCRIPT_START] = "Executing script: %s";
00047 vmsg[MSG_SCRIPT_STOP] = "Script execution ended.";
00048 vmsg[MSG_SQL_START] = "Executing SQL script: %s";
00049 vmsg[MSG_SQL_STOP] = "SQL script execution ended.";
00050 vmsg[MSG_DQR_START] = "Executing Data Query: %s";
00051 vmsg[MSG_DQR_STOP] = "Rows returned: " MCS_SEP "%d" MCS_SEP;
00052 vmsg[MSG_DB_FIELDS_DESCR] = "Sending fields details " MCS_SEP "%d" MCS_SEP;
00053 vmsg[MSG_DB_FIELDS_DESCR2] = "End fields details";
00054 vmsg[MSG_SYS_EXIT_STATUS] = "Exit status: %d";
00055 vmsg[MSG_USER_HAS_GRANTS] = "User %s has grants : %d.";
00056 vmsg[MSG_THREAD_CREATE] = "%s\t\t\t\tcreated";
00057 vmsg[MSG_THREAD_DESTROY] = "%s\t\t\t\tdestroyed";
00058 vmsg[MSG_SERVER_DIR] = "APPD set to: %s";
00059 vmsg[MSG_SERVER_RUNNING] = "MCS Server running on %s:%d";
00060 vmsg[MSG_CREATING_LOCAL] = "Creating new LocalThread...";
00061 vmsg[MSG_CREATING_CLIENT] = "Creating new UserThread on ID=%d...";
00062 vmsg[MSG_LOCAL_THREAD_DIED] = "Local thread died, shutting down server...";
00063 vmsg[MSG_KILLING_CLIENT] = "Killing client %d...";
00064 vmsg[MSG_KILLING_LOCAL] = "Killing local thread...";
00065 vmsg[MSG_KILLING_ALL_CLIENTS] = "Killing all clients...";
00066 vmsg[MSG_COPYING_DATA_OBJECTS] = "Copying Data objects in %s";
00067 vmsg[MSG_NEW_RECORDSET] = "New RecordSet ready";
00068 vmsg[MSG_FETCH_EOF] = "End of file reached";
00069 vmsg[MSG_BYE] = "Bye.";
00070 vmsg[MSG_DUMMY] = "";
00071 vmsg[MSG_CANT_OPEN_FILE] = "Can't open file %s";
00072 vmsg[MSG_INVALID_SWITCH] = "Invalid value for switch: %d";
00073 vmsg[MSG_METHOD_MUST_BE_OVERLOADED] = "This virtual method needs to be overloaded: %s";
00074 vmsg[MSG_NET_INTERFACE_NAME_NOT_EXISTS] = "Interface named %s doesn't exists";
00075 vmsg[MSG_NET_INTERFACE_ID_NOT_EXISTS] = "Interface with index %d doesn't exists (total %d)";
00076 vmsg[MSG_NET_INTERFACE_NOT_ACTIVE] = "Interface %s is not active";
00077 vmsg[MSG_RETRIEVING_INTERFACE_FLAGS] = "Can't get flags for interface %s";
00078 vmsg[MSG_RETRIEVING_HOSTNAME] = "Error calling gethostbyname(): %s";
00079 vmsg[MSG_RETRIEVING_PEERNAME] = "Error calling getpeername(): %s";
00080 vmsg[MSG_RETRIEVING_HOST_INFO] = "Error calling gethostbyaddr(): %s";
00081 vmsg[MSG_CANT_CONNECT_TO_HOST] = "Can't connect to host: %s";
00082 vmsg[MSG_TIME_OUT] = "Connection timed out";
00083 vmsg[MSG_UNEXPECTED] = "Unexpected error. %s";
00084 vmsg[MSG_CALLING_SELECT] = "Error calling select(): %s";
00085 vmsg[MSG_CALLING_RECV] = "Error calling recv(): %s";
00086 vmsg[MSG_CALLING_SEND] = "Error calling send(): %s";
00087 vmsg[MSG_CLOSED_BY_PEER] = "Connection closed by peer";
00088 vmsg[MSG_CALLING_BIND] = "Error calling bind(): %s";
00089 vmsg[MSG_CALLING_LISTEN] = "Error calling listen(): %s";
00090 vmsg[MSG_CALLING_PTHREAD_CREATE] = "Error calling pthread_create()";
00091 vmsg[MSG_OUT_OF_MEMORY] = "Out of memory";
00092 vmsg[MSG_DIRECTORY_NOT_FOUND] = "Directory not found: %s";
00093 vmsg[MSG_CANT_MKDIR] = "Can't create directory: %s";
00094 vmsg[MSG_CANT_RMDIR] = "Can't remove directory: %s";
00095 vmsg[MSG_CANT_MKFIFO] = "Can't create FIFO file";
00096 vmsg[MSG_CALLING_PIPE] = "Error calling pipe()";
00097 vmsg[MSG_ERROR] = "Error: %s";
00098 vmsg[MSG_SYNTAX] = "Syntax error: %s";
00099 vmsg[MSG_WRONG_DIM_SPEC] = "Wrong index for dim %d: %d";
00100 vmsg[MSG_TYPE_NOT_HANDLED] = "Data type not handled on field %d: %d";
00101 vmsg[MSG_CONVERSION_STRING_INT] = "Conversion error, STRING to INT";
00102 vmsg[MSG_CONVERSION_BLOB_INT] = "Conversion error, BLOB to INT";
00103 vmsg[MSG_CONVERSION_STRING_FLOAT] = "Conversion error, STRING to FLOAT";
00104 vmsg[MSG_CONVERSION_BLOB_FLOAT] = "Conversion error, BLOB to FLOAT";
00105 vmsg[MSG_CONVERSION_DATETIME] = "Conversion error (not a date and/or time): %s";
00106 vmsg[MSG_CONVERSION_BLOB_DATETIME] = "Conversion error, BLOB to DATETIME";
00107 vmsg[MSG_CONVERSION_INT_BLOB] = "Conversion error, INTEGER to BLOB";
00108 vmsg[MSG_CONVERSION_FLOAT_BLOB] = "Conversion error, DOUBLE to BLOB";
00109 vmsg[MSG_CONVERSION_STRING_TOO_LONG] = "Conversion error: string too long";
00110 vmsg[MSG_CONVERSION_STRING_BLOB] = "Conversion error, STRING to BLOB";
00111 vmsg[MSG_CONVERSION_TIME_LINT] = "Conversion error, TIME to number shorter than INT";
00112 vmsg[MSG_CONVERSION_NAN] = "Conversion error: not a number";
00113 vmsg[MSG_NOT_A_BLOB] = "Not a BLOB object";
00114 vmsg[MSG_BLOB_TOO_BIG] = "BLOB too big: %d";
00115 vmsg[MSG_QUEUE_FULL] = "Queue is full";
00116 vmsg[MSG_INDEX_OUT_RANGE] = "Index out of range: %d >= %d";
00117 vmsg[MSG_MISSING_FIELD] = "Missing field: %s";
00118 vmsg[MSG_INDEX_UNAVAILABLE] = "Index unavailable: %d";
00119 vmsg[MSG_ENTRY_UNAVAILABLE] = "Entry not available: %s/%s";
00120 vmsg[MSG_INDEX_LT_ZERO] = "Index less than zero: %d";
00121 vmsg[MSG_SEND_ABORT_BY_RECEIVER] = "Sending aborted by receiver";
00122 vmsg[MSG_PROTOCOL] = "Communication protocol error: " MCS_SEP "%s" MCS_SEP;
00123 vmsg[MSG_NOT_ENOUGH_SPACE] = "Not enough space in buffer: %d > %d";
00124 vmsg[MSG_CANT_ALLOCATE_MYSQL] = "Can't allocate MySQL connection handler";
00125 vmsg[MSG_CANT_OPEN_MYSQL_CONNECTION] = "Can't connect to MySQL server: %s";
00126 vmsg[MSG_USE_ONLY_WITH_STORERESULT] = "%s can be used only with storeResult()";
00127 vmsg[MSG_MYSQL_ERROR] = "MySQL: %s";
00128 vmsg[MSG_INVALID_POSITION] = "Invalid position: %d";
00129 vmsg[MSG_BIND_FAILED] = "Bind failed: %s";
00130 vmsg[MSG_STMT_NOT_YET_PREPARED] = "Statement not yet prepared";
00131 vmsg[MSG_EMPTY_STRING] = "Empty string";
00132 vmsg[MSG_CANT_GET_INFO_TABLE] = "Cannot get info for table: %s";
00133 vmsg[MSG_CANT_LOCK_TABLE] = "Cannot lock table %s insert";
00134 vmsg[MSG_CANT_UNLOCK_TABLE] = "Cannot unlock tables";
00135 vmsg[MSG_STMT_WRONG_NUM_PARAM] = "Wrong number of parameter in prepared statement";
00136 vmsg[MSG_NO_RESULT] = "No result available";
00137 vmsg[MSG_NO_FIELDS] = "No fields in result";
00138 vmsg[MSG_FITS_ERROR] = "FITS: %s";
00139 vmsg[MSG_FITS_NOT_COMPILED] = "CFITSIO feature hasn't been compiled";
00140 vmsg[MSG_UNKNOWN_FILE_TYPE] = "Unknown file type: %s";
00141 vmsg[MSG_NOT_LOGIN] = "You didn't log in";
00142 vmsg[MSG_MYSQL_DISABLED] = "MySQL feature is not enabled";
00143 vmsg[MSG_GRANTS_LOGIN] = "You're not allowed to log in.";
00144 vmsg[MSG_GRANTS_DB_SCRIPT] = "You're not allowed to execute DB scripts.";
00145 vmsg[MSG_GRANTS_SCRIPT] = "You're not allowed to execute shell scripts.";
00146 vmsg[MSG_GRANTS_QUERY] = "You're not allowed to execute direct queries.";
00147 vmsg[MSG_GRANTS_BATCH] = "You're not allowed to execute BATCH commands.";
00148 vmsg[MSG_GRANTS_ADMIN] = "You're not allowed to use administrative commands.";
00149 vmsg[MSG_GRANTS_GET] = "You're not allowed to use retrieve files.";
00150 vmsg[MSG_GRANTS_CANTGET_GRANTS] = "Can't retrieve grants information.";
00151 vmsg[MSG_GRANTS_SYS] = "You're not allowed to issue system commands";
00152 vmsg[MSG_GRANTS_PUT] = "You're not allowed to upload files.";
00153 vmsg[MSG_DB_ERR_NOTACTIVATED] = "DB facility is not active";
00154 vmsg[MSG_DB_NOT_COMPILED] = "MySQL feature hasn't been compiled";
00155 vmsg[MSG_SCRIPT_ERROR] = "Program quit with code" MCS_SEP "%d" MCS_SEP ", see err file";
00156 vmsg[MSG_NO_MORE_CLIENT_ALLOWED] = "No more clients allowed";
00157 vmsg[MSG_OBJECT_MISSING] = "Object missing";
00158 vmsg[MSG_SIZE_CHUNK] = "Size of a chunk cannot be less than one: %d";
00159 vmsg[MSG_ALREADY_CONNECTED] = "You already logged in.";
00160 vmsg[MSG_EXT_BIN_UNEXPECTED] = "Program abnormal termination";
00161 vmsg[MSG_NOT_CONNECTED] = "Socket not connected";
00162 vmsg[MSG_EXT_NOT_AVAILABLE] = "External program or script not available: %s";
00163 vmsg[MSG_CHARACTER_NOT_ALLOWED] = "Character not allowed: '%s'";
00164 vmsg[MSG_CANT_SET_SYNCHRO_STATE] = "Can't set synchro state now";
00165 vmsg[MSG_NOT_A_RANDOM_ACCESS_RECORDSET] = "Can't use method %s on a non random access recordset";
00166 vmsg[MSG_ALREADY_AT_BEGIN_OF_FILE] = "Already at begin of file";
00167 vmsg[MSG_ALREADY_AT_END_OF_FILE] = "Already at end of file";
00168 vmsg[MSG_NO_METAREC] = "No meta information has been given";
00169 vmsg[MSG_DONT_KNOW_NROWS] = "Don't know how many records in the set";
00170 vmsg[MSG_NO_SAME_META_INFO] = "Records doesn't have the same meta structure";
00171 vmsg[MSG_INSERT_NOT_ALLOWED] = "Can't insert records while in fetch mode";
00172 vmsg[MSG_FETCH_ERROR] = "Error while fetching record: %s";
00173 vmsg[MSG_INCOMPATIBLE_SERIAL] = "Incompatible Serializable objects: %d > %d";
00174 vmsg[MSG_CANT_READ_CERT] = "Can't read certificate file: %s";
00175 vmsg[MSG_CANT_READ_KEY] = "Can't read key file: %s";
00176 vmsg[MSG_SSL_CONNECT_ERROR] = "SSL connect error";
00177 vmsg[MSG_SSL_ACCEPT_ERROR] = "SSL accept error";
00178 vmsg[MSG_UNKNOWN_USERID] = "Unknown user id: %d";
00179 vmsg[MSG_YET_RUNNING] = "The thread is yet running";
00180 vmsg[MSG_FILE_ALREADY_EXISTS] = "File already exists: %s";
00181 vmsg[MSG_PIPE_YET_OPENED] = "Pipe is already opened, call \"closeRead()\" first.";
00182 vmsg[MSG_CANT_EXECUTE_FILE] = "Can't execute file: %s";
00183 vmsg[MSG_CANT_BIND_AND_HAVE_DIMSPEC] = "The object can't be bind and have a dim spec";
00184 vmsg[MSG_TOO_MANY_DIMSPEC] = "Too many dim spec, max is %d";
00185 vmsg[MSG_VARYING_MUST_BE_LAST] = "There can be only one dynamic dimension and it must be the last";
00186 vmsg[MSG_NO_DIM_ALLOWED_TO_CHANGE] = "No dim is allowed to change";
00187 vmsg[MSG_NO_ABSOLUTE_PATH] = "Absolute paths are not allowed: %s";
00188 vmsg[MSG_NO_DOUBLEDOT_PATH] = "The \"..\" string is not allowed: %s";
00189 vmsg[MSG_CANT_FREE_EXTERNAL_BUF] = "Cannot free an externally-handled buffer";
00190 vmsg[MSG_NO_WINDOWS_SELECTED] = "No window has been selected";
00191 vmsg[MSG_PIPE_NOT_CREATED] = "Pipe has not been created.";
00192 vmsg[MSG_VOT_UNHANDLED_CODE] = "Unhandled code: %d";
00193 vmsg[MSG_VOT_PARSE_FAILED] = "Parse failed on file: %s";
00194 vmsg[MSG_VOT_CANT_OPEN_FILE] = "Can't open file: %s";
00195 vmsg[MSG_VOT_UNEXPECTED_NODE_TYPE] = "Unexpected node type: %d";
00196 vmsg[MSG_VOT_NOT_AN_INTEGER] = "Not an integer value: %s";
00197 vmsg[MSG_VOT_INVALID_NODETYPE] = "Invalid element type: %s";
00198 vmsg[MSG_VOT_INVALID_DATATYPE] = "Invalid Datatype: %s";
00199 vmsg[MSG_VOT_INVALID_ENCODINGTYPE] = "Invalid EncodingType: %s";
00200 vmsg[MSG_VOT_INVALID_RESOURCE_TYPE] = "Invalid Resource_type: %s";
00201 vmsg[MSG_VOT_INVALID_FIELD_TYPE] = "Invalid Field_type: %s";
00202 vmsg[MSG_VOT_INVALID_VALUES_TYPE] = "Invalid Values_Type: %s";
00203 vmsg[MSG_VOT_INVALID_LINK_CONTENT_ROLE] = "Invalid Link_content_role: %s";
00204 vmsg[MSG_VOT_INVALID_STREAM_TYPE] = "Invalid Stream_type: %s";
00205 vmsg[MSG_VOT_INVALID_STREAM_ACTUATE] = "Invalid Stream_actuate: %s";
00206 vmsg[MSG_VOT_INVALID_COOSYS_SYSTEM] = "Invalid Coosys_system: %s";
00207 vmsg[MSG_VOT_INVALID_INDEX] = "Invalid index: %d";
00208 vmsg[MSG_VOT_UNEXPECTED_ATTRIBUTE] = "Unexpected attribute: %s";
00209 vmsg[MSG_VOT_ROOT_IS_NOT_VOTABLE] = "Root node is not a VOTABLE element: %s";
00210 vmsg[MSG_CURL_ERROR] = "Curl error: %s";
00211 vmsg[MSG_CURL_INIT] = "Cannot initialize CURL library";
00212 }
00213 
00214 

mcslogo

MCS (My Customizable Server) ver. 0.3.3-alpha3
Documentation generated on Thu Mar 22 13:22:23 UTC 2012