Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÐéÄâ»úÏÂlinuxÉÏÍøÎÊÌâ - C/C++ / ÐÂÊÖÀÖÔ°

ÎÒÓõÄÊÇVISTA£¬Ó÷ÓÉÆ÷ÉÏÍø£¬red_hat9.0Linux£¬
¿´ÁËÍøÉϸ÷ÖÖÉèÖ÷½·¨¶¼²»ÐУ¡¶øÇÒ£¡linuxÀïµÄÉ豸ÊDz»»îÔ¾£¡Ò²¾ÍÊǼ¤»î²»ÁË£¡Ôõô°ì£¿Ë­ÄÜÔÚÏßÊÖ°ÑÊֽ̽ÌÎÒ£¡ÉèÖÃÁ˺ܾã¡Õâ¸öÎÊÌ⣡À§ÈÅÎÒ²»ÐÐÁË£¡
redhat 9, LinuxÖеÄturboc 2.01

...
ifconfig ¿´Ò»ÏÂeth0 ¹¤×÷·ñ
/etc/init.d/ [dhcp] start

ºÃÏñÉè³Éͬ¸öÍø¶Î¾Í¿ÉÒÔÉÏÍøÁË,
ifconfig eth0 xxx
Èç¹ûÄãÓõÄÊÇÇŽÓ..²»¹ýÒ²ÓпÉÄÜÊÇ´íµÄ..²»´óÓÃÐéÄâ»ú.

red hat 9
ÕâÊÇ9ÄêÇ°2.4Äں˵Ķ«Î÷ÁË£¬»»¸öеã¶ùµÄ°æ±¾°É£¡

ÁíÍ⣬Èç¹ûÊÇÔÚÐéÄâ»úÀÄãÒ²µÃ˵Çå³þÍüÁËÊÇNATģʽ»¹ÊÇBridged Adapterģʽ°¡£¿

ÉÏÃæÓÐ´í£¬¡°ÍüÁË¡±Ó¦¸ÃÊÇ¡°ÍøÂ硱¡£

ÓÃÇŽӵķ½·¨Í¦¼òµ¥µÄ£¬ÊÔ¹ýÁË£¿


ÄãÏÈ°ÑÐéÄâ»úÉèΪ ÇÅÁ¬½Ó
È»ºóÔÙÔÚÄãµÄÐéÄâϵͳÀïÃæÈ¥ÉèÖÃÍøÂ磨ͼÐνçÃæÏÂÈ¥ÉèÖ㬱Ƚϼòµ¥£©

ÓÃÇŽӰɣ¬Í¬Ê±½¨ÒéÂ¥Ö÷»»¸öÐÂÒ»µãµÄ·¢Ðаæ°É£¬FedoraCore12»òÕßUbuntu¶¼²»´í

ºÇºÇ£¬ÎÒ²©¿ÍµÄ·½·¨ÊÔÁËÂð£¿

Èç¹ûÊÇÄãµÄÐéÄâ»úÊÇvm,Äã¿ÉÒÔ¸øÎÒ·¢Óʼþshaohua20051231@163.com

ÄãÖØÐÂ×°Ò»±éÐéÄâ»ú£¬Ê²Ã´ÅäÖö¼²»Òª¸Ä£¬ËüĬÈϵľͿÉÒÔÉÏÍø¡£

Ô­À´ÊÇÐéÄâ»ú°æ±¾Ì«µÍÁË£¡ºÇºÇ£¡


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

¸ÕѧÍêCµÄ»ù´¡£¬ÇóÏÂÒ»²½ - C/C++ / CÓïÑÔ

ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë 
Äã²»Àí½âÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ