⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
////////////////////////////////////////////////////////////////////////// Filename    : main.cpp// Written By  : 厘 全 芒   changaya@metrotech.co.kr// Description : Database Cache Server侩 main function////////////////////////////////////////////////////////////////////////// include files#include "Types.h"#include "Exception.h"#include "GameServer.h"#include "LogClient.h"#include "Properties.h"#include "StringStream.h"#include <unistd.h>#include <stdlib.h>#include <sys/time.h>#include <sys/resource.h>#include <new>void memoryError(){	cerr << "CRITICAL ERROR! NOT ENOUGH MEMORY!" << endl;	exit(0);}////////////////////////////////////////////////////////////////////////// main()////////////////////////////////////////////////////////////////////////int main (int argc , char* argv[]){	cout << ">>> STARTING CACHE SERVER..." << endl;	// 皋葛府 绝促..窃荐甫 汲沥茄促.	set_new_handler(memoryError);	cout << ">>> MEMORY HANDLER INSTALL SUCCESS..." << endl;	// What?	int* pPointer = NULL;	pPointer = new int[500000000];	delete pPointer;	// 利例茄 困摹甫 茫酒焊磊.	srand(time(0));	cout << ">>> RANDOMIZATION INITIALIZATION SUCCESS..." << endl;    if (argc < 3) 	{        cout << "Usage : cacheserver -f 券版颇老" << endl;        exit(1);    }    // command-line parameter甫 string 栏肺 函券茄促. ^^;    string* Argv;            Argv = new string[argc];    for (int i = 0 ; i < argc ; i ++)        Argv[i] = argv[i];	cout << ">>> COMMAND-LINE PARAMETER READING SUCCESS..." << endl;    // 券版 颇老阑 佬绢甸牢促.    // 窜 角青 颇老篮 $VSHOME/bin俊, 券版 颇老篮 $VSHOME/conf 俊 粮犁秦具 茄促.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -