Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Лабы / 2 / lab.01.by mice / fexchange / fx_const

.h
Скачиваний:
10
Добавлен:
17.04.2013
Размер:
3.15 Кб
Скачать
/*******************************************************************************
* file:         fx_const.h                                                     *
* version:	    0.0.1                                                          *
* author:       d-evil [tmd] (mailto:d-evil.tmd@mail.ru)                       *
* description:  not available                                                  *
*******************************************************************************/

#ifndef FX_CONST_INCLUDED
#define FX_CONST_INCLUDED


namespace fx_ns {

////////////////////////////////////////////////////////////////////////////////
// int (ok)
const int OK_OK = 0;
const int OK_CANCEL = 1;
const int OK_REPEAT = 2;
const int OK_HZ = 57005;

////////////////////////////////////////////////////////////////////////////////
// int (error codes)
const int ERC_NOERROR = -3000;
const int ERC_ERROR = -3001;
// sockets
const int ERC_SOCK_SOCKET = -3101;
const int ERC_SOCK_BIND = -3103;
const int ERC_SOCK_RESOLVE = -3104;
const int ERC_SOCK_LISTEN = -3105;
const int ERC_SOCK_ACCEPT = -3106;
const int ERC_SOCK_ACCEPTNOTHANDLED = -3107;
const int ERC_SOCK_STOP = -3109;
const int ERC_SOCK_CLOSESOCKET = -3110;
const int ERC_SOCK_IOSTL = -3111;
const int ERC_SOCK_CONNECT = -3112;
// core
const int ERC_CORE_CRSERV = -3201;
const int ERC_CORE_RUNSERV = -3202;
const int ERC_CORE_SERVRUNNING = -3203;
const int ERC_CORE_SHORTBUF_T = -3204;
const int ERC_CORE_NULLIFACE = -3205;
const int ERC_CORE_BADCMD = -3206;
// interface
const int ERC_IF_BADCMD = -3206;

// other
const int ERC_NOTHANDLED = -3001;
const int ERC_CRTHREAD = -3008;
const int ERC_WSAFAILED = -3002;
const int ERC_CANTOPENFILE = -3011;
const int ERC_NO_CMDSUPPORT = -3012;

////////////////////////////////////////////////////////////////////////////////
// int (messages string id's)
const int MSG_WINERRORAPPEND = 1004;



////////////////////////////////////////////////////////////////////////////////
// int
const int LEN_FILEPATH = 256;


////////////////////////////////////////////////////////////////////////////////
// int (error levels)
const int ERL_CRITICAL = 16;
const int ERL_NORMAL = 32;

////////////////////////////////////////////////////////////////////////////////
// int (error codes)
const int ERC_CANTCRTHREAD = -16;
const int ERC_SHORTBUFFER = -24;
const int ERC_NOMEMORY = -28;

////////////////////////////////////////////////////////////////////////////////
// str (error messages)
static const char *ERM_ERROR = "Error";
static const char *ERM_ERRORC = "Error with code %i";
static const char *ERM_ERRORS = "Error: %s";
static const char *ERM_CANTOPENFILE = "Can't open file \"%s\"";
static const char *ERM_CANTCRTHREAD = "Can't create thread";
static const char *ERM_SHORTBUFFER = "Buffer too short";
static const char *ERM_NOMEMORY = "No free memory";

////////////////////////////////////////////////////////////////////////////////
// str (protocol)
static const char *PRS_HEAD = "I wish I was a Skijumper (c)";



}	// end of namespace "fx_ns"



#endif
Соседние файлы в папке fexchange