def unpackOpen_direct_tcpip(data):
 (connHost, rest) = common.getNS(data)
 connPort = int(struct.unpack('>L', rest[:4])[0])
 (origHost, rest) = common.getNS(rest[4:])
 origPort = int(struct.unpack('>L', rest[:4])[0])
 return ((connHost, connPort), (origHost, origPort))

def unpackOpen_direct_tcpip ( data ) : ( connHost , rest ) = common . getNS ( data ) connPort = int ( struct . unpack ( '>L' , rest [ : 4 ] ) [ 0 ] ) ( origHost , rest ) = common . getNS ( rest [ 4 : ] ) origPort = int ( struct . unpack ( '>L' , rest [ : 4 ] ) [ 0 ] ) return ( ( connHost , connPort ) , ( origHost , origPort ) )
unpack the data to a usable format .