Httunnel :: Client.

Httunnel :: Ŭ¶óÀ̾ðÆ®´Â Apache :: HttunnelÀÇ Å¬¶óÀ̾ðÆ® Ŭ·¡½ºÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

Httunnel :: Client. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Patrick LeBoutillier
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~patl/File-FDkeeper-0.06/FDkeeper.pod

Httunnel :: Client. ű×


Httunnel :: Client. ¼³¸í

Httunnel :: Client´Â Apache :: HttunnelÀÇ Å¬¶óÀ̾ðÆ® Ŭ·¡½ºÀÔ´Ï´Ù. httunnel :: Ŭ¶óÀ̾ðÆ®´Â apache :: httunnel.synopsis ³» $ hc = new httunnel :: client ( "http : // localhost / httunnel")ÀÇ Å¬¶óÀ̾ðÆ® Ŭ·¡½ºÀÔ´Ï´Ù. $ hc-> connect ( 'TCP', $ some_host, $ some_port); $ hc-> Àμâ ( 'ÀϺΠ¿äû'); MY $ SOUND_RESPONSE = $ HC-> Àбâ (1024); $ CH-> close (); httunnel :: Ŭ¶óÀ̾ðÆ®´Â Apache :: httunnelÀÇ Å¬¶óÀ̾ðÆ® Ŭ·¡½ºÀÔ´Ï´Ù. À̸¦ ÅëÇØ ³×Æ®¿öÅ© ¿¬°áÀ» HTTP¸¦ ÅëÇØ »ý¼º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ¿¬°á Áß¿¡ Àü¼ÛµÇ°í ¼ö½Å µÈ ¸ðµç µ¥ÀÌÅÍ´Â ÀÏ¹Ý HTTP Requests.httunnel :: Ŭ¶óÀ̾ðÆ®°¡ LWP :: UserAgent¸¦ È®ÀåÇϹǷΠHttunnel :: Client.ConstructOrSnew (URL, )¸¦ ÅëÇØ ¸ðµç LWP :: UserAgent ¸Þ¼­µå¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Apache :: Httunnel ¼­¹ö¿¡ ¿¬¶ôÇÏ´Â URLÀ» »ç¿ëÇÏ´Â Httunnel :: Client °´Ã¼. args´Â lwp :: userAgent constructor.methodsconnect (proto, host, port, )¿¡ Á÷Á¢ Àü´ÞµË´Ï´Ù. Apache :: httunnel ¼­¹ö¸¦ È£½ºÆ®¿¡ ´ëÇÑ ÇÁ·ÎÅäÄÝ ÇÁ·ÎÅ並 ¿¬°áÇÒ ¼ö ÀÖµµ·Ï ¹¯½À´Ï´Ù. Æ÷Æ®. ¿À·ù°¡ ¹ß»ýÇÏ¸é ¿¹¿Ü°¡ ¹ß»ýÇÕ´Ï´Ù. Proto¿¡ ´ëÇÑ accepted °ªÀº 'tcp'ÀÌ°í 'udp'.print (µ¥ÀÌÅÍ)´Â apache :: httunnel ¼­¹ö°¡ µ¥ÀÌÅ͸¦ ±âÁ¸ÀÇ ¿ø°Ý ¿¬°á¿¡ ¾µ ¼ö ÀÖ½À´Ï´Ù. ¿À·ù°¡ ¹ß»ýÇÏ¸é ½ºÄ®¶ó ¶Ç´Â ¸ñ·ÏÀÌ µÉ ¼öÀÖ´Â °æ¿ì ¿¹¿Ü°¡ throwµË´Ï´Ù.ÀÌ °æ¿ì ¸ñ·Ï Ç׸ñÀÌ ÇÔ²² ¿¬°áµË´Ï´Ù .Read (Len, , , )´Â Apache :: httunnelÀ» ¹¯½À´Ï´Ù. ¼­¹ö°¡ ¼³Á¤µÈ ¿ø°Ý ¿¬°á¿¡¼­ LEN ¹ÙÀÌÆ®±îÁö ÀÐÀ» ¼ö ÀÖ½À´Ï´Ù. ¿À·ù°¡ ¹ß»ýÇÏ¸é ¿¹¿Ü°¡ ¹ß»ýÇÕ´Ï´Ù. ÀÐÀ¸·Á°í ÇÒ ¶§, Httunnel :: Client´Â Len ¹ÙÀÌÆ®¸¦ Àд °ÍÀ» ¹¯´Â Apache :: Httunnel ¼­¹ö¿¡ ´ëÇÑ HTTP ¿¬°áÀ» ¼³Á¤ÇÕ´Ï´Ù. ½Ã°£ ÃÊ°ú ÃÊ (±âº»°ªÀº 15 ÃÊ) ÀÌÈÄ¿¡ µ¥ÀÌÅ͸¦ »ç¿ëÇÒ ¼ö¾ø´Â °æ¿ì HTTP ¿¬°áÀº ¼­¹ö°¡ ´ÝÈ÷°í Àб⠸޼ҵ尡 »õ °ÍÀ» ¼³Á¤ÇÕ´Ï´Ù. ÀϺΠµ¥ÀÌÅÍ ¶Ç´Â EOF°¡ ¹Ýȯ µÉ ¶§±îÁö °è¼ÓµË´Ï´Ù. Àбâ ÀüȯÀº ÀϺΠ(¶Ç´Â ´õ ÀÌ»ó) µ¥ÀÌÅ͸¦ ÀÐÀ» ¼öÀÖ´Â °æ¿ì¿¡¸¸ ¹ÝȯµË´Ï´Ù (ÀÏ¹Ý Àбâ¿Í °°Àº) .LifelineÀº ÀÐÀ» ¼öÀÖ´Â À¯È¿ÇÑ ÆÄÀÏ ÇÚµéÀÌ µÉ ¼ö ÀÖ½À´Ï´Ù. »ç¿ëÇÏ´Â °æ¿ì, Àбâ´Â ÇØ´ç ¿¬°á ·çÇÁ¸¦ ¹æÇØÇÏ°í LifEline_cut_actionÀ» Çص¿·ÎºÎÅÍ ÀÐÀ» ¼ö ÀÖ½À´Ï´Ù. ±×·± ´ÙÀ½ undef.lifeline_cut_action Wust´Â ÄÚµå ÂüÁ¶°¡µË´Ï´Ù. ±âº»°ªÀº ÇÏÀ§ {DIE ( "Lifeline Cutn")} Æ÷Å©¸¦ ¿øÇÒ °æ¿ì ÀÌ·¯ÇÑ ±â´ÉÀ» »ç¿ëÇÏ¿© ÆÄÀÌÇÁ¸¦ ÅëÇØ µ¥ÀÌÅ͸¦ ÀÐ°í ¸®ÅÏÇÏ´Â ÇÁ·Î¼¼½º¸¦ ½ÃÀÛÇÒ °æ¿ì »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·± ´ÙÀ½ µÎ ¹ø° ÆÄÀÌÇÁ¸¦ »ç¿ëÇÏ¿© ¸®´õ ÇÁ·Î¼¼½º°¡ Á¾·á µÉ ¶§ ¸®´õ ÇÁ·Î¼¼½º°¡ Á¾·áµÇ¾ú´ÂÁö È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹ : MY $ lifeline = new io :: pipe (); ³» $ READER = NEW IO :: PIPE (); ³» $ pid = fork (); if ($ pid) {$ Reader-> Reader (); $ lifeline-> writer (); # $ Reader ...}}} {$ Reader-> Writer (); $ READER-> AUTOFLUSH (1); $ lifeline-> reader (); (1) {MY $ DATA = $ HC-> Àбâ (1024, 15, $ lifeline, sub {exit ()}); Á¤ÀÇ µÈ °æ¿ì°¡ ¾Æ´Ñ ÇÑ Á¾·á (); $ Reader $ µ¥ÀÌÅ͸¦ ÀμâÇϽʽÿÀ. }} ´Ý±â () apache :: httunnel ¼­¹ö°¡ ÀÌÀü¿¡ ¼³Á¤µÈ connectionÀ» ´ÝÀ¸·Á¸é get_peer_info () get_peer_info ¸Þ¼Òµå´Â ¿ø°Ý ¿¬°á¿¡ ´ëÇÑ Á¤º¸¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÄÝ·Ð (:)À¸·Î ±¸ºÐ µÈ IP ÁÖ¼Ò¿Í Æ÷Æ® ¹øÈ£°¡ Æ÷ÇÔ µÈ ¹®ÀÚ¿­ÀÌ ¹ÝȯµË´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â °¢ Packet.Request_Callback (¿äû)ÀÇ º¸³½ »ç¶÷ÀÇ À¯È¿¼ºÀ» °ËÁõÇϱâ À§ÇØ UDP ¿¬°á¿¡ À¯¿ë ÇÒ ¼ö ÀÖ½À´Ï´Ù. request_callback ¸Þ¼Òµå´Â Àü¼ÛµÇ±â ¹Ù·Î Àü¿¡ http :: Request °´Ã¼¿¡ ¾×¼¼½ºÇÏ´Â µ¥ »ç¿ëÇÒ ¼öÀÖ´Â ÄÝ¹é ¸Þ¼­µåÀÔ´Ï´Ù. ±âº» ±¸ÇöÀº Nothing.Response_callback (ÀÀ´ä) ÀÀ´ä _callback ¸Þ¼Òµå´Â HTTP :: Response °´Ã¼¿¡ ¾×¼¼½ºÇÏ´Â µ¥ »ç¿ëÇÒ ¼öÀÖ´Â ÄÝ¹é ¸Þ¼­µåÀÔ´Ï´Ù. ±âº» ±¸ÇöÀº ¾Æ¹« °ÍµµÇÏÁö ¾Ê½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


Httunnel :: Client. °ü·Ã ¼ÒÇÁÆ®¿þ¾î