Usage ¶
createThriftSocketSession(host_name
: str
, port
: int
) → hapi.Session
Creates a Thrift RPC session using a TCP socket as transport.
host_name
The name of the server host.
port
The server port to connect to.
Returns session as a hapi.Session.