摘要: 使用 su - oracle 命令执行后即可执行Oracle本身sqlplus命令 中横线前后都有空格 切记 阅读全文
posted @ 2020-10-28 21:43 龙马8586 阅读(959) 评论(0) 推荐(0) 编辑
摘要: std::string GetCurrentExeDir(){ char szPath[1024] = { 0 };#ifdef WIN32 GetModuleFileName(NULL, szPath, 1024); char* p = strrchr(szPath, '\\');#else re 阅读全文
posted @ 2020-10-28 21:39 龙马8586 阅读(302) 评论(0) 推荐(0) 编辑
摘要: int Int2Ip(UINT uiIp, string& strOut){ strOut.clear(); BYTE bN1 = 0, bN2 = 0, bN3 = 0, bN4 = 0; char arrIp[32] = { 0 }; bN1 = (uiIp)& 0xFF; bN2 = (uiI 阅读全文
posted @ 2020-10-27 21:40 龙马8586 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: tcp 应用服务器有时候会有多个网卡多个不同网段服务器ip地址,我们需要建一个socket server端绑定一个端口来接受多个网段相同端口的socket客户端连接 此时就需要tcp应用服务器满足此功能,以下方法创建socket服务器可满足该需求 举个例子,假设一个主机有inter1,inter2, 阅读全文
posted @ 2020-10-26 21:48 龙马8586 阅读(1278) 评论(0) 推荐(0) 编辑
摘要: #include<windows.h>#include <time.h> int GetMonthBegin(UINT iTmpStamp, UINT& iStamp){ time_t tick = static_cast<time_t>(iTmpStamp); struct tm t_tm; lo 阅读全文
posted @ 2020-10-25 22:40 龙马8586 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #include<windows.h>#include <time.h> int GetYearBegin(UINT iTmpStamp, UINT& iStamp){ time_t tick = static_cast<time_t>(iTmpStamp); struct tm t_tm; loc 阅读全文
posted @ 2020-10-25 21:59 龙马8586 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include<windows.h>#include <time.h> int GetWeekBegin(UINT iTmpStamp, UINT& iStamp){ time_t tick = static_cast<time_t>(iTmpStamp); struct tm t_tm; loc 阅读全文
posted @ 2020-10-24 21:54 龙马8586 阅读(414) 评论(0) 推荐(0) 编辑
摘要: #include<windows.h>#include <time.h> int GetDayBegin(UINT iTmpStamp, UINT& iStamp){ time_t tick = static_cast<time_t>(iTmpStamp); struct tm t_tm; loca 阅读全文
posted @ 2020-10-22 21:19 龙马8586 阅读(170) 评论(0) 推荐(0) 编辑
摘要: int BufToHex(char* pBuf, int iLen, string& strOut){ strOut.clear(); if (NULL == pBuf || iLen < 1) { return TRUE; } char szTmp[4] = { 0 }; strOut.reser 阅读全文
posted @ 2020-10-22 21:17 龙马8586 阅读(671) 评论(0) 推荐(0) 编辑
摘要: BOOL GetDirFiles(const char* pszDir, char* pszFileType, std::vector<std::string>& vtFileList, BOOL bRecursion){ LOGE_TRUE_RETURN_FALSE(pszDir == NULL 阅读全文
posted @ 2020-10-22 21:14 龙马8586 阅读(396) 评论(0) 推荐(0) 编辑