def packOpen_direct_tcpip((connHost, connPort), (origHost, origPort)):
 conn = (common.NS(connHost) + struct.pack('>L', connPort))
 orig = (common.NS(origHost) + struct.pack('>L', origPort))
 return (conn + orig)

def packOpen_direct_tcpip ( ( connHost , connPort ) , ( origHost , origPort ) ) : conn = ( common . NS ( connHost ) + struct . pack ( '>L' , connPort ) ) orig = ( common . NS ( origHost ) + struct . pack ( '>L' , origPort ) ) return ( conn + orig )
pack the data suitable for sending in a channel_open packet .