会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
byfei
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
13
14
15
16
17
18
19
20
21
···
95
下一页
2018年10月9日
[手游项目2]-17-socket传输zip文件
摘要: https://download.csdn.net/download/xiongxu/3222384
阅读全文
posted @ 2018-10-09 16:19 byfei
阅读(52)
评论(0)
推荐(0)
2018年10月8日
[手游项目2]-16-端口没被占用,怎么会bind失败呢?
摘要: 今天在一个服务器上部署一个webserver的时候,提示我bind端口失败,我习惯性的用netstat看了下,没有被占用啊!把问题分享出来后,给力的同事们搜索到了ip_local_port_range这个东西这个东西对应的是/proc/sys/net/ipv4...
阅读全文
posted @ 2018-10-08 20:02 byfei
阅读(107)
评论(0)
推荐(0)
2018年9月13日
[手游项目2]-15-单引号导致mysql存储失败问题
摘要: //过滤特殊字符会导致数据库存储失败inline bool CheckNameVaild( const char* pStrName ){ int nLen = strlen(pStrName); if(nLen < 1) return false; fo...
阅读全文
posted @ 2018-09-13 17:55 byfei
阅读(66)
评论(0)
推荐(0)
2018年9月6日
[手游项目2]-14-linux下如何用C语言编程判断某端口是否被占用
摘要: #include #include #include #include #include #include #define MAXLINE 80int main(void){ struct sockaddr_in servaddr; int sockfd,i,...
阅读全文
posted @ 2018-09-06 22:08 byfei
阅读(195)
评论(0)
推荐(0)
2018年8月30日
[手游项目2]-13-mysql代码自动建表
摘要: 自动创建表static std::string m_SqlTable = "create table if not exists log_counter_%d(\`Id` int(11) NOT NULL AUTO_INCREMENT,\`ServerId` ...
阅读全文
posted @ 2018-08-30 14:11 byfei
阅读(68)
评论(0)
推荐(0)
[手游项目2]-12-min 到max随机n个不同的数
摘要: #include #include int Rand(int from,int to){ int nDec, nMin; if (from > to) { nDec = from - to + 1; nMin = to; } else { n...
阅读全文
posted @ 2018-08-30 14:04 byfei
阅读(68)
评论(0)
推荐(0)
2018年8月8日
[手游项目2]-11-linux下浮点数和整数相乘bug
摘要: bug, 正确
阅读全文
posted @ 2018-08-08 15:53 byfei
阅读(42)
评论(0)
推荐(0)
2018年7月25日
[手游项目2]-10-C++怎样关闭一个已经名称的程序的进程?
摘要: #include int main() { system("TASKKILL /F /IM Gate.exe"); system("pause"); }
阅读全文
posted @ 2018-07-25 11:42 byfei
阅读(81)
评论(0)
推荐(0)
2018年7月23日
[手游项目2]-9-进程监控自动重启
摘要: 批处理.bat @echo off :en tasklist |find "Gate"||start Gate ping -n 5 127.0.0.1>nul goto en http://python.jobbole.com/84338/ https:/...
阅读全文
posted @ 2018-07-23 14:56 byfei
阅读(51)
评论(0)
推荐(0)
2018年7月22日
[手游项目2]-8-VS远程调试
摘要: 本地计算机 目标计算机 http://www.cnblogs.com/tengs2000/articles/1070760.html
阅读全文
posted @ 2018-07-22 09:47 byfei
阅读(61)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
95
下一页
公告