linuxÏÂtcp³ÌÐòÎÊÌâ - C/C++ / CÓïÑÔ
Çë½ÌÎÊÌ⣬ÎÒÔÚÐéÄâ»úUbuntuϵͳÉÏÔËÐÐÒ»¸ötcp³ÌÐò£¬server¶ËÓÃÁ˾ÖÓòÍøipµØÖ·°ó¶¨Ê±£¬ÔÚͬһ»úÆ÷ÉϵÄclient¶Ë¿ÉÒÔ·ÃÎÊͨѶ¡£
µ«ÊÇÎÒ°Ñserver¶ËµÄipµØÖ·¸ÄΪ¹«ÍøipµÄʱºò£¬client¶Ë¾Í²»ÄÜͨѶÁË¡£¡£
ÎÒÓÃWindowsϵÄftp·ÃÎÊdebian³É¹¦ÁË(ÎÒÊÇdebianÐéÄâ»ú×îС°²×°)
µÚÒ»²½:apt-get install vsftpd
sudo /sbin/iptables -F(Í£Ö¹·À»ðǽ)
sudo /sbin/iptables -L -n(²é¿´ÏÖÓеķÀ»ðǽÅäÖÃ)
µÚ¶þ²½:sudo /sbin/iptables -A INPUT -p tcp -m tcp --sport 21 -vj ACCEPT
sudo /sbin/iptables -A OUTPUT -p tcp -m tcp --dport 21 -j ACCEPT
µÚÈý²½:vim /etc/vsftpd.conf
ÐÞ¸ÄÆäÖеÄanonymous_enables=NO
local_enable=YES
listen_port=21
write_enable=YES
anon_upload_enable=NO
ÖØÆôOK!!!
ÄãµÄclient¶ËÄܹ»ÉÏÍøÂð£¿Ò²¾ÍÊÇÄܹ»½Óµ½¹«ÍøÉÏÈ¥£¿
ÐéÄâ»úÏÂÖ±½Ó¾Í¿ÉÒÔ·ÃÎʹ«Íø°¡,òËÆÍøÂçÕⲿ·ÖÐéÄâ»ú¾Í°ïÄã¸ã¶¨ÁË
¿ÉÒÔÉÏÍø°¡...
ѧϰÏ¡£
ÏÈtelnet IP PORTÈç¹û¿ÉÒÔÔò˵Ã÷µÄ¿Í»§¶ËµÄÎÊÌâ¡£
Èç¹û²»Í¨ËµÃ÷ÊÇ·þÎñ¶ËµÄÎÊÌâ¡£¼ì²â·þÎñ¶Ë°ó¶¨µÄIPºÍPORTÊÇ·ñÕýÈ·
Õâ¸öÐèÒªÖªµÀÄãµÄÍøÂç¼Ü¹¹ÊÇÔõôÑùµÄ£¬ÄãµÄ»úÆ÷ÊÇ·ñÓÐͨ¹ý·ÓÉÆ÷¡¢Íø¹ØÖ®ÀàµÄ½ÓÈ빫ÍøÄØ£¿
Èç¹ûÄãµÄ»úÆ÷ÊÇÔÚÒ»¸ö¾ÖÓòÍøÖУ¬È»ºóͨ¹ýÍø¹Ø½ÓÈëµ½¹«Íø£¬Äãbind°ó¶¨µÄip¶Ô¹«ÍøÀ´ËµÊDz»¿É¼ûµÄ¡£½¨ÒéÂ¥Ö÷½«ÍøÂç¼Ü¹¹Ïêϸ˵һÏÂ
²»¶®£¬Ï¸ÐÄѧϰÕⲿ·Ö֪ʶ£¬·¢ÏÖ×Ô¼ºµÄ¼ÆËã»úÍøÂç֪ʶ»¹ÊǺÜǷȱѽ£¡
¹«ÍøµØÖ·²»ÊÇÏëÓþÍÄÜÓõġ£
ÒªÓõ½¹«ÍøipµÄʱºòÐèÒª×öһ϶˿ÚÓ³Éä¡£¡£¡£Ð»Ð»´
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£
²»»á.
ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ
ËÑË÷Ï£ºjni ......
×ÉѯQQ£º269562808
bzip2recover
¹¦ÄÜ˵Ã÷£ºÓÃÀ´ÐÞ¸´Ë𻵵Ä.bz2Îļþ¡£
Óï·¨£ºbzip2recover[.bz2ѹËõÎļþ]
²¹³ä˵Ã÷£ºbzip2ÊÇÒÔÇø¿éµÄ·½Ê½À´Ñ¹ËõÎļþ£¬Ã¿¸öÇø¿éÊÓΪ¶ÀÁ¢µÄµ¥Î»¡£Òò´Ë£¬µ±Ä³Ò»Çø
¿éËð»µÊ±£¬±ã¿ÉÀû ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......