目录
1、tcpip协议族
?2、TCP状态转移
?3、api编程
在这里记录一下学习linux高性能服务器编程的过程
1、tcpip协议族 2、TCP状态转移 3、api编程判断机器字节序
#include4、downloadvoid byteorder() { union { short value; char union_bytes[ sizeof( short ) ]; } test; test.value = 0x0102; if ( ( test.union_bytes[ 0 ] == 1 ) && ( test.union_bytes[ 1 ] == 2 ) ) { printf( "big endian " ); } else if ( ( test.union_bytes[ 0 ] == 2 ) && ( test.union_bytes[ 1 ] == 1 ) ) { printf( "little endian " ); } else { printf( "unknown... " ); } }
还有很多待学习,之后再学习百度云盘,yyds



