linuxϵͳÏÂΪʲôÿ¸öÎļþ¶¼ÓÐÁ½¸ö£¿
±ÈÈçÎÒн¨ÁËÒ»¸öÎļþ¡°J2ME--LISTµÄÓ÷¨Ð¡ÊµÀý.txt¡°
ÐÞ¸ÄÕâ¸öÎļþ£¬È»ºó±£´æ£¬·¢ÏÖµ±Ç°Îļþ¼ÐÏÂÓÐÁ½¸öÎļþ£º
J2ME--LISTµÄÓ÷¨Ð¡ÊµÀý.txt
J2ME--LISTµÄÓ÷¨Ð¡ÊµÀý.txt~
µÚ¶þ¸öÎļþÊÇʲô
¾ÝÎÒËùÖª,ÄãÓÃgedit¾Í»á²úÉúÕâ¸öÎļþ,±¸·ÝÓõİÉ~
¶Ô£¬ÎÒÓõľÍÊÇgedit
Ôõô°ÑËûµÄ±¸·Ý¸ø¹ØÁË
rm *~
Öα겻Öα¾¡£ÒÔºóÓÃgeditÐÞ¸ÄÎļþµÄʱºò£¬»¹»á³öÏÖ¡«ÎļþµÄ
ËÓÐÖα¾µÄ°ì·¨£¿
gedit->±à¼->Ê×Ñ¡Ïî->±à¼Æ÷ °ÑÎļþ±£´æÏÂÃæµÄÁ½¸ö¹´È¥µô
±¸·Ýàç
лл¡£¾ÍÊÇÕâ¸öÁË
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
СµÜ×î½üÐèÒªÒ»¸öÓÃsocket»ñÈ¡htmlÎĵµµÄ´úÂ룬µ«ÊÇÀÏÊDz»ÄÜ»ñÈ¡ÍêÕûµÄhtmlÔ´Âë¡£ÔÒò²»Ã÷£¬Íû¸ßÊÖÖ¸µã£¡
C/C++ code:
char *Http_GET(char *host,int port,char *data) //·¢ËÍGETÇëÇó
{
char response[2 ......
ÎÒµÄÒâ˼ÊÇ£º
ÔÚ²»¸ü¸ÄÔÀ´µÄÎļþ¼ÐËùÓÐÈË£¬ËùÓÐ×飬ÆäËûÈËȨÏÞµÄÇé¿öÏ£¬µ¥¶À¸øÎļþ¼ÐÊÚȨijÓû§
±ÈÈç/var/www Õâ¸öÎļþ¼Ð£¬ÔÀ´ÏµÍ³ÓÐĬÈϵÄÊôÖ÷ºÍÊô×飬ÎÒÏÖÔÚ²»ÏëÈ¥¸ÄËüÔÀ´µÄÉ趨£¬Ö»ÊÇÏë¸øËüÔö¼ ......
ÎÒҪд¸ö·þÎñ¶Ë¡£ ÒªÇóͬʱ֧³Öwindows ºÍ linux Á½¸ö ϵͳ¡£ Ò²¾ÍÊÇҪдһ¸ö dllºÍÒ»¸öso Îļþ¡£ÓÉÓÚÎÒÒ»Ö±¶¼ÊÇÔÚwindsÏÂд³ÌÐò¡£linuxµÄ»¹²»»á¡£ Ïò´ó¼Ò×Éѯ ͬʱ Ö§³Ö dllºÍso Ó¦¸ÃÔõôд¡£
Óô¿c/c ......
linux Ͻø³Ì´´½¨¡£
ʹÓÃvfork() º¯Êý´´½¨ÁË×Ó½ø³Ìºó£¬×Ó½ø³ÌÏÈÐÐÖ´ÐУ¬ÔÚ×Ó½ø³Ìµ÷ÓÃexit»òexec֮ǰ¸¸½ø³Ì´¦ÓÚʲô״̬£¿£¿
²»ÖªµÀ£»Ê×ÏÈδ±ØÊÇ×Ó½ø³ÌÏÈÖ´ÐУ»µÚ2¸¸½ø³ÌÒ²´¦ÓÚÖ´ÐÐ״̬£»ÖÁÓÚ¸¸½ø³Ìµ½µ××öʲô£»¿´´ ......