ó
[³XMc           @   s\   d  Z  d d l m Z d d l m Z d d l m Z d e j f d     YZ d   Z d S(	   s9   
Support module for making a port forwarder with twistd.
i˙˙˙˙(   t   portforward(   t   usage(   t   strportst   Optionsc           B   sT   e  Z d  Z d Z d d d d g d d d d	 g d
 d d d g g Z i d d 6Z RS(   s	   [options]s   Port Forwarder.t   portt   pt   6666s   Set the port number.t   hostt   ht	   localhosts   Set the host.t	   dest_portt   di	  s   Set the destination port.t   _hosts(   t   __name__t
   __module__t   synopsist   longdesct   optParameterst   zsh_actions(    (    (    s;   /usr/lib/python2.7/dist-packages/twisted/tap/portforward.pyR      s   c         C   s4   t  j |  d t |  d   } t j |  d |  S(   NR   R
   R   (   R    t   ProxyFactoryt   intR   t   service(   t   configt   f(    (    s;   /usr/lib/python2.7/dist-packages/twisted/tap/portforward.pyt   makeService   s     N(	   t   __doc__t   twisted.protocolsR    t   twisted.pythonR   t   twisted.applicationR   R   R   (    (    (    s;   /usr/lib/python2.7/dist-packages/twisted/tap/portforward.pyt   <module>   s
   
