- 博客(5)
- 收藏
- 关注
转载 Socket发送和接收变长结构体
//Server端代码 [cpp] view plaincopyprint? #include #include #include #include #include #include #include //使用不定长的结构体发送数据的关键在于:结构体变量必须分配到堆中,而不是栈中 //即只能用malloc或者ne
2014-08-08 00:38:00
3443
转载 C++ Socket Demo
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 // FileNam
2014-07-31 15:43:54
712
转载 serverAdd.sin_addr.s_addr
这两天尽忙着看winsock了,玩过它的人都知道正确的填写IP地址是很重要的一个环节。所谓填写IP地址就是指在SOCKADDR_IN结构体中填写IP地址: struct sockaddr_in { short sin_family; u_short sin_port; struct in_addr sin_addr; char
2014-07-31 15:38:42
1085
转载 mysql数据类型
mysql数据类型 1、整型 MySQL数据类型 含义(有符号) tinyint(m) 1个字节 范围(-128~127) smallint(m) 2个字节 范围(-32768~32767) mediumint(m) 3个字节 范围(-8388608~8388607) int(m) 4个字节 范围(-214748
2014-07-12 14:38:36
369
转载 C++ 书籍
TCPL和D&E 1:Bjarne Stroustrup, The C++ Programming Language (Special 3rd Edition) 《C++ 程序设计语言(特别版)》,裘宗燕译,机械工业出版社,计算机科学丛书,¥85 另David Vandevoorde, C++ Solutions Companion to The C++ Programming La
2014-07-12 11:31:52
590
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人