Usage ¶
createThriftSocketSession(host_name
: str
, port
: int
, session_info
: hapi.SessionInfo) → 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.
session_info
A hapi.SessionInfo struct to specify session configurations.
Returns session as a hapi.Session.