ü\Óü¿Æ¼¼Íø

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á
mito
²é¿´: 4142|»Ø¸´: 3

[Linux] C/C++ LinuxÍøÂç±à³Ì¸ß¼¶Ð¸ÅÄ½²ÊÓÆµ½Ì³Ì

[¸´ÖÆÁ´½Ó]

8Íò

Ö÷Ìâ

608

»ØÌû

27Íò

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
275170
QQ
·¢±íÓÚ 2018-6-26 15:23:12 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ
¿Î³ÌÃû³Æ:  C/C++ LinuxÍøÂç±à³Ì¸ß¼¶Ð¸ÅÄ½²ÊÓÆµ½Ì³Ì

¿Î³Ì¼ò½é:    

C++½Ì³ÌÍø LinuxÍøÂç±à³Ì(¼ÛÖµ280Ôª)

----------------------¿Î³ÌĿ¼------------------------------

¿Î³ÌĿ¼
LinuxÍøÂç±à³ÌÖ®TCP/IP»ù´¡Æª
01TCPIP»ù´¡£¨Ò»£©
ISO/OSI²Î¿¼Ä£ÐÍ
TCP/IPËIJãÄ£ÐÍ
»ù±¾¸ÅÄ¶ÔµÈͨÐÅ¡¢·â×°¡¢·ÖÓᢶ˿ڣ©
02TCPIP»ù´¡£¨¶þ£©
×î´ó´«Êäµ¥Ôª£¨MTU£©/·¾¶MTU
ÒÔÌ«ÍøÖ¡¸ñʽ
ICMP
ARP
RARP

03TCPIP»ù´¡£¨Èý£©
IPÊý¾Ý±¨¸ñʽ
Íø¼ÊУÑéºÍ
·ÓÉ

04TCPIP»ù´¡£¨ËÄ£©
TCPÌØµã
TCP±¨Îĸñʽ
Á¬½Ó½¨Á¢Èý´ÎÎÕÊÖ
Á¬½ÓÖÕÖ¹ËÄ´ÎÎÕÊÖ
TCPÈçºÎ±£Ö¤¿É¿¿ÐÔ

05TCPIP»ù´¡£¨Î壩
»¬¶¯´°¿ÚЭÒé
UDPÌØµã
UDP±¨Îĸñʽ

LinuxÍøÂç±à³ÌÖ®socket±à³Ìƪ
06socket±à³Ì£¨Ò»£©
ʲôÊÇsocket
IPv4Ì×½Ó¿ÚµØÖ·½á¹¹
ÍøÂç×Ö½ÚÐò
×Ö½ÚÐòת»»º¯Êý
µØÖ·×ª»»º¯Êý
Ì×½Ó×ÖÀàÐÍ

07socket±à³Ì£¨¶þ£©
TCP¿Í»§/·þÎñÆ÷Ä£ÐÍ
»ØÉä¿Í»§/·þÎñÆ÷
socket¡¢bind¡¢listen¡¢accept¡¢connect

08socket±à³Ì£¨Èý£©
SO_REUSEADDR
´¦Àí¶à¿Í»§Á¬½Ó£¨process-per-conection£©
µã¶ÔµãÁÄÌì³ÌÐòʵÏÖ

09socket±à³Ì£¨ËÄ£©
Á÷ЭÒéÓëÕ³°ü
Õ³°ü²úÉúµÄÔ­Òò
Õ³°ü´¦Àí·½°¸
readn writen
»ØÉä¿Í»§/·þÎñÆ÷

10socket±à³Ì£¨Î壩
read¡¢writeÓërecv¡¢send
readlineʵÏÖ
ÓÃreadlineʵÏÖ»ØÉä¿Í»§/·þÎñÆ÷
getsockname¡¢getpeername
gethostname¡¢gethostbyname¡¢gethostbyaddr

11socket±à³Ì£¨Áù£©
TCP»ØÉä¿Í»§/·þÎñÆ÷
TCPÊǸöÁ÷ЭÒé
½©½ø³ÌÓëSIGCHLDÐźÅ

12socket±à³Ì£¨Æß£©
TCP 11ÖÖ״̬
Á¬½Ó½¨Á¢Èý´ÎÎÕÊÖ¡¢Á¬½ÓÖÕÖ¹ËÄ´ÎÎÕÊÖ
TIME_WAITÓëSO_REUSEADDR
SIGPIPE

13socket±à³Ì£¨°Ë£©
ÎåÖÖI/OÄ£ÐÍ
select
ÓÃselect¸Ä½ø»ØÉä¿Í»§¶Ë³ÌÐò

14socket±à³Ì£¨¾Å£©
select
¶Á¡¢Ð´¡¢Ò쳣ʼþ·¢ÉúÌõ¼þ
ÓÃselect¸Ä½ø»ØÉä·þÎñÆ÷³ÌÐò

15socket±à³Ì£¨Ê®£©
ÓÃselect¸Ä½øµÚ°ËÕµã¶ÔµãÁÄÌì³ÌÐò

16socket±à³Ì£¨Ê®Ò»£©
Ì×½Ó×ÖI/O³¬Ê±ÉèÖ÷½·¨
ÓÃselectʵÏÖ³¬Ê±
read_timeoutº¯Êý·â×°
write_timeoutº¯Êý·â×°
accept_timeoutº¯Êý·â×°
connect_timeoutº¯Êý·â×°

17socket±à³Ì£¨Ê®¶þ£©
selectÏÞÖÆ
poll

18socket±à³Ì£¨Ê®Èý£©
epollʹÓÃ
epollÓëselect¡¢pollÇø±ð
epoll LT/ETģʽ

19socket±à³Ì£¨Ê®ËÄ£©
UDPÌØµã
UDP¿Í»§/·þÎñ»ù±¾Ä£ÐÍ
UDP»ØÉä¿Í»§/·þÎñÆ÷
UDP×¢Òâµã

20socket±à³Ì£¨Ê®Î壩
udpÁÄÌìÊÒʵÏÖ

21socket±à³Ì£¨Ê®Áù£©
UNIXÓòЭÒéÌØµã
UNIXÓòµØÖ·½á¹¹
UNIXÓò×Ö½ÚÁ÷»ØÉä¿Í»§/·þÎñ
UNIXÓòÌ×½Ó×Ö±à³Ì×¢Òâµã

22socket±à³Ì£¨Ê®Æß£©
socketpair
sendmsg/recvmsg
UNIXÓòÌ×½Ó×Ö´«µÝÃèÊö·û×Ö
LinuxÍøÂç±à³ÌÖ®½ø³Ì¼äͨÐÅÆª

23½ø³Ì¼äͨÐŽéÉÜ£¨Ò»£©
½ø³Ìͬ²½Óë½ø³Ì»¥³â
½ø³Ì¼äͨÐÅÄ¿µÄ
½ø³Ì¼äͨÐÅ·¢Õ¹
½ø³Ì¼äͨÐÅ·ÖÀà
½ø³Ì¼ä¹²ÏíÐÅÏ¢µÄÈýÖÖ·½Ê½
IPC¶ÔÏóµÄ³ÖÐøÐÔ

24½ø³Ì¼äͨÐŽéÉÜ£¨¶þ£©
ËÀËø
ÐźÅÁ¿
PVÔ­Óï
ÓÃPVÔ­Óï½â¾ö˾»úÓëÊÛÆ±Ô±ÎÊÌâ
ÓÃPVÔ­Óï½â¾öÃñº½ÊÛÆ±ÎÊÌâ
ÓÃPVÔ­Óï½â¾öÆû³µ×âÁÞÎÊÌâ

25System VÏûÏ¢¶ÓÁУ¨Ò»£©
ÏûÏ¢¶ÓÁÐ
IPC¶ÔÏóÊý¾Ý½á¹¹
ÏûÏ¢¶ÓÁнṹ
ÏûÏ¢¶ÓÁÐÔÚÄÚºËÖеıíʾ
ÏûÏ¢¶ÓÁк¯Êý

26System VÏûÏ¢¶ÓÁУ¨¶þ£©
msgsndº¯Êý
msgrcvº¯Êý

27System VÏûÏ¢¶ÓÁУ¨Èý£©
ÏûÏ¢¶ÓÁÐʵÏÖ»ØÉä¿Í»§/·þÎñÆ÷

28¹²ÏíÄÚ´æ½éÉÜ
¹²ÏíÄÚ´æ
¹²ÏíÄÚ´æÊ¾Òâͼ
¹ÜµÀ¡¢ÏûÏ¢¶ÓÁÐÓë¹²ÏíÄÚ´æ´«µÝÊý¾Ý¶Ô±È
mmapº¯Êý
munmapº¯Êý
msyncº¯Êý

29System V¹²ÏíÄÚ´æ
¹²ÏíÄÚ´æÊý¾Ý½á¹¹
¹²ÏíÄڴ溯Êý
¹²ÏíÄÚ´æÊ¾Àý

30System VÐźÅÁ¿£¨Ò»£©
ÐźÅÁ¿
ÐźÅÁ¿¼¯½á¹¹
ÐźÅÁ¿¼¯º¯Êý
ÐźÅÁ¿Ê¾Àý

31System VÐźÅÁ¿£¨¶þ£©
ÓÃÐźÅÁ¿ÊµÏÖ½ø³Ì»¥³âʾÀý

32System VÐźÅÁ¿£¨Èý£©
ÓÃÐźż¯½â¾öÕÜѧ¼Ò¾Í²ÍÎÊÌâ

33System V¹²ÏíÄÚ´æÓëÐźÅÁ¿×ÛºÏ
ÓÃÐźÅÁ¿½â¾öÉú²úÕßÏû·ÑÕßÎÊÌâ
ʵÏÖshmfifo

34POSIXÏûÏ¢¶ÓÁÐ
POSIXÏûÏ¢¶ÓÁÐÏà¹Øº¯Êý
POSIXÏûÏ¢¶ÓÁÐʾÀý
35POSIX¹²ÏíÄÚ´æ
POSIX¹²ÏíÄÚ´æÏà¹Øº¯Êý
POSIX¹²ÏíÄÚ´æÊ¾Àý
LinuxÍøÂç±à³ÌÖ®Ïß³ÌÆª

36Ï߳̽éÉÜ
ʲôÊÇÏß³Ì
½ø³ÌÓëÏß³Ì
Ïß³ÌÓÅȱµã
Ïß³ÌÄ£ÐÍ
N:1Óû§Ïß³ÌÄ£ÐÍ
1:1ºËÐÄÏß³ÌÄ£ÐÍ
N:M»ìºÏÏß³ÌÄ£ÐÍ

37POSIXỊ̈߳¨Ò»£©
POSIXÏ߳̿âÏà¹Øº¯Êý
ÓÃÏß³ÌʵÏÖ»ØÉä¿Í»§/·þÎñÆ÷

38POSIXỊ̈߳¨¶þ£©
Ïß³ÌÊôÐÔ
Ïß³ÌÌØ¶¨Êý¾Ý

39POSIXÐźÅÁ¿Ó뻥³âËø
POSIXÐźÅÁ¿Ïà¹Øº¯Êý
POSIX»¥³âËøÏà¹Øº¯Êý
Éú²úÕßÏû·ÑÕßÎÊÌâ
×ÔÐýËøÓë¶ÁÐ´Ëø½éÉÜ

40POSIXÌõ¼þ±äÁ¿
Ìõ¼þ±äÁ¿
Ìõ¼þ±äÁ¿º¯Êý
Ìõ¼þ±äÁ¿Ê¹Óù淶
ʹÓÃÌõ¼þ±äÁ¿½â¾öÉú²úÕßÏû·ÑÕßÎÊÌâ

41Ò»¸ö¼òµ¥µÄÏ̳߳ØÊµÏÖ
Ï̳߳ØÐÔÄÜ·ÖÎö
Ï̳߳ØÊµÏÖ


ÏÂÔØµØÖ·£º
Óοͣ¬Èç¹ûÄúÒª²é¿´±¾ÌûÒþ²ØÄÚÈÝÇë»Ø¸´

¸ü¶àÌû×ÓÍÆ¼ö

»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

szl888 ¸ÃÓû§Òѱ»É¾³ý
·¢±íÓÚ 2018-8-17 09:01:23 | ÏÔʾȫ²¿Â¥²ã
Ìáʾ: ×÷Õß±»½ûÖ¹»òɾ³ý ÄÚÈÝ×Ô¶¯ÆÁ±Î
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

0

Ö÷Ìâ

2Íò

»ØÌû

4Íò

»ý·Ö

½ûÖ¹·ÃÎÊ

»ý·Ö
41607
·¢±íÓÚ 2021-9-29 19:14:56 | ÏÔʾȫ²¿Â¥²ã
Ìáʾ: ×÷Õß±»½ûÖ¹»òɾ³ý ÄÚÈÝ×Ô¶¯ÆÁ±Î
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

0

Ö÷Ìâ

7174

»ØÌû

1Íò

»ý·Ö

ÌåÑéVIP

Rank: 7Rank: 7Rank: 7

»ý·Ö
14686
·¢±íÓÚ 2022-6-14 16:07:36 | ÏÔʾȫ²¿Â¥²ã
¹ýÀ´¿´¿´µÄ
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

QQ|Archiver|ÊÖ»ú°æ|ü\Óü¿Æ¼¼Íø

GMT+8, 2025-11-30 17:21 , Processed in 0.190627 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí