LinuxϱàÒëµÄÏîÄ¿,ÔÚVCÏÂÃæÖرàÒëµÄÎÊÌâ.
ÓÐÒ»¸öc++ÏîÄ¿ÔÚLinuxÏÂÃæ±àÒë³É¹¦µÄ,¿ÉÒÔÉú³ÉdllÎļþ.µ«ÊÇÏÖÔÚ¿ª·¢ÔÚVC++ºÍC#ÏÂÃæ,»¹ÊÇÐèÒªÕâ¸öDLL.Õâ¸ölinuxÏÂÃæµÄdllÊDz»ÊǾͲ»ÄÜÓÃÁË?±ØÐëÔÚVCÀïÃæÖØбàÒë.
ÓаÑLinuxÏîĿת³ÉVCÏîÄ¿µÄÇë˵˵×Ô¼ºµÄ¾Ñé,ÎÒתµÄºÜÓôÃÆ.ÎÊÌâÔ½¸ÄÔ½¶à.
linuxµÄCppºÍhÎļþÓеĶ¼²»¼ÓÏà¹ØÍ·ÎļþµÄ.ÎÒ¼ÓÉÏÓÖÓкܶàÎÊÌâ.
ÄǾÍÊÇ˵,»ù±¾É϶¼Òª¸Ä.
LinuxÏÂÃæµÄDLL,ÔÚWindowsÏÂÃæÄÜÓÃÂð??
LinuxÏÂÒ»°ã²»½Ðdll£¬Ö»ÒªÄãµÄ´úÂë×㹻ǿ£¬Ö¸½ÚÔÚWinϱàÒë¾ÍÐС£µ±È»±àÒë½Å±¾²»Ò»Ñù¡£
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
Linux²»Õý³£¹Ø»úµ¼ÖÂϵͳ»µ£¬ÇëÎÊÔõô¼ì²éºÍÐÞ¸´ÏµÍ³£¿
ÔÚ¸ÕÆô¶¯µÄʱºò»áÓÐÌáʾµÄ¡£
ÐÞ¸´¿ÉÒÔ¿¿livecd
»òÕß°Ñ»ù±¾ÏµÍ³²¿·ÖÖØа²×°¼´¿É
ÊDz»ÊÇϵͳ±à³ÌÁËread-onlyµÄÀ²£¿ÎÞ·¨ÍùϵͳдÈëÊý¾Ý°¡£¿
ÓеÄÇé ......
СµÜ×î½üÐèÒªÒ»¸öÓÃsocket»ñÈ¡htmlÎĵµµÄ´úÂ룬µ«ÊÇÀÏÊDz»ÄÜ»ñÈ¡ÍêÕûµÄhtmlÔ´Âë¡£ÔÒò²»Ã÷£¬Íû¸ßÊÖÖ¸µã£¡
C/C++ code:
char *Http_GET(char *host,int port,char *data) //·¢ËÍGETÇëÇó
{
char response[2 ......
linux vsftpd Äܲ»Äܸü¸ÄĬÈϵÄFTPÉÏ´«Ä¿Â¼?
ʹÓÃftpµÇ¼£¬»áµÇ¼µ½/home/ftp Õâ¸öĿ¼£¬ÎÒÏë¸ü¸Äµ½ÆäËûµÄĿ¼£¬ÔõôÅäÖÃÄØ
Çë¸ßÊִͽÌß¹£¬¼±¼±¼±£¡
ÓÐЩftp¹¤¾ß¿ÉÒÔÖ±½Ó×Ô¼ºÐ´Ä¿Â¼µÄ°É£¬Õâ¸öĿ¼Ӧ¸Ã¾ÍÊ ......
ÎÒÃÇÁ¥ÊôÖпÆÔº¼ÆËãËùÍøÂçÖصãʵÑéÊÒ(http://www.ict.ac.cn/survey/channel/detail443.asp)»ù´¡ÉèÊ©¿ÎÌâ×é.
ÏÖÒòÏîÄ¿ºÍÒµÎñÍØÕ¹µÄÐèÒª,ÌØÐèÒªÕÐƸÓëÏîÄ¿Ïà¹ØµÄÍøÂçÓ¦Óù¤³Ìʦ1-2Ãû¡£
¾ßÌåÒªÇóÈçÏ¡£ÓÐÒâÕß ......