I want to say sorry because this article is writing by English. I’m using Ubuntu System. So I dont have a Chinese input method. Here is the code:

I also edit my blog whose title is “This innocence is brilliant”. There is somthing wrong with the background music. The music player is too ugly to use. So I re-edited it and it looks beautiful now. I hope you can enjoy it. 🙂

2016.4.8—原始套接字多线程服务器

别问我为什么要用原始套接字做服务器。说多了都是眼泪。8G内存的机器,最大CPU利用率可以到42左右。最高发包速度可以到200M+。 原始套接字并...

阅读全文

2016.4.8—读取文件内容到内存

好久没有更新博客。也是懒得不行了。今天贴一个代码,C语言的,可以将文件读取到内存。将文件读取到内存有好处。当文件比较大时。200M以上就算大文件了。频繁...

阅读全文

2015.7.9—int不能转换位float型

今天出了一个错误,在代码中把int型的数据强制转换位float类型,导致数值精度丢失,具体就是多了1,这与计算机的运行原理有关。float类型是符号加数值,i...

阅读全文

欢迎留言

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据