linuxÏÂÔõôÉèÖÃudp½ÓÊÕ»º´æ×î´óÖµ£¿
if(setsockopt(TUdpRec_sUDP,SOL_SOCKET,SO_RCVBUF,(const char*)&nRecvBuf,sizeof(int)) == 0)
printf( "set senbufsize = %d\n", nRecvBuf);
if(getsockopt(TUdpRec_sUDP, SOL_SOCKET, SO_RCVBUF, (char *)&nRecvBuf, &nBufSize) == 0)
printf( "get senbufsize = %d\n", nRecvBuf);
ʹÓÃÕâÑùµÄ·½·¨ÉèÖÃudp»º³å£¬×î´ó¾ÍÖ»Äܵ½256K£¬Äܲ»ÄÜÍ»ÆÆÕâ¸öÏÞÖÆ£¿
ÔõôÉèÖã¿£¿
http://topic.csdn.net/t/20021128/17/1213893.html
»¹ÓÐÒ»¸öÎÊÌâ¡£
ÏÖÔÚÖ»ÊÇ´ÓÍøÂçÊÕUDPÊý¾Ý£¨1024°ü´óС£©£¬Ð´µ½Ó²ÅÌ¡£
ÓÃnetsataÃüÁî¿´ÐÅÏ¢
ÆäÖУº
udp°ü½ÓÊÕ´íÎ󣬻¹ÓÐ×îºóµÄ ½ÓÊÕ»º³å´íÎó
Êý¶¼ºÜ´ó.
ʲôÇé¿ö»áÔì³ÉÕâÑùµÄÔÒò£¿£¿
ÎÒÖ»ÓùýsetsockoptºÍgetsockopt£¬lsµÄ¼¸Î»µÄûÓùý£¬²»¹ýÎÒ¾õµÃÒ»´Î½ÓÊÕ256KÒѾ×ã¹»ÁË£¨ÎÒ»¹Ã»Óö¼û¹ýrecvfromÄÜÒ»ÏÂ×ÓÊÕµ½³¬¹ý256KµÄÊý¾Ý£©¡£
ûÓÐÓµÈû¿ØÖÆ£¬Ò²²»±£Ö¤°üµÄ˳Ðò£¬ËÙ¶ÈÔ½¿ì£¬´íÎóÔ½¶à£¬
³ý·ÇÓ¦ÓòãʵÏÖ¿É¿¿udp£¬ÒªÃ´ÓÃtcp£¬·ñÔòÎÞ·¨´Ó¸ù±¾ÉϽâ¾öÎÊÌâ
Ïà¹ØÎÊ´ð£º
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
ÎÒÓÃuÅÌ°²×°debian£¬°´ÕÕÍøÉϵķ½·¨×öºÃuÅÌÆô¶¯Å̺󣬽«biosÉèÖÃΪUsb-fddģʽ£¨uÅÌÖ»ÄÜÔÚÕâ¸öģʽÏÂÆô¶¯£©£¬ÄÜÕý³£Æô¶¯¡£½øÈëÅäÖÃÒ³ÃæºóÔÚɨÃècd-romʱÌáʾÎÞ.iso¾µÏñ¡£Õâ¿ÉÔõô°ì£¿
ÍøÉÏÓÐÈË˵ҪÓÃgrubÒýµ¼ÎªuÅ ......
linux /etc/rc.d/Ŀ¼ÏÂÕÒ²»µ½rc3.dÎļþ¼Ð£¿
Çë½Ì¸÷λ´óϺָ½Ì£¿
ÃüÁîÐÐÀsetup·þÎñÑ¡ÏîĪ·¨Óã¬Çë½ÌÏÂÈçºÎ½â¾ö£¿
лл
ŪÄÄÈ¥ÁË£¿
²»Ð¡ÐÄɾ³ýÁË£¿
ÄǿɲÒÁË£¬copy¸örc.5ÓÃÓðɡ£ ......
ÎÒҪд¸ö·þÎñ¶Ë¡£ ÒªÇóͬʱ֧³Öwindows ºÍ linux Á½¸ö ϵͳ¡£ Ò²¾ÍÊÇҪдһ¸ö dllºÍÒ»¸öso Îļþ¡£ÓÉÓÚÎÒÒ»Ö±¶¼ÊÇÔÚwindsÏÂд³ÌÐò¡£linuxµÄ»¹²»»á¡£ Ïò´ó¼Ò×Éѯ ͬʱ Ö§³Ö dllºÍso Ó¦¸ÃÔõôд¡£
Óô¿c/c ......
linux Ͻø³Ì´´½¨¡£
ʹÓÃvfork() º¯Êý´´½¨ÁË×Ó½ø³Ìºó£¬×Ó½ø³ÌÏÈÐÐÖ´ÐУ¬ÔÚ×Ó½ø³Ìµ÷ÓÃexit»òexec֮ǰ¸¸½ø³Ì´¦ÓÚʲô״̬£¿£¿
²»ÖªµÀ£»Ê×ÏÈδ±ØÊÇ×Ó½ø³ÌÏÈÖ´ÐУ»µÚ2¸¸½ø³ÌÒ²´¦ÓÚÖ´ÐÐ״̬£»ÖÁÓÚ¸¸½ø³Ìµ½µ××öʲô£»¿´´ ......