LibTRF Wrapper Functions

Functions

int lpTrfClientInit(PLPContext ctx, char *host, char *port)

Initialize the Client connection to server.

Parameters:
  • ctx – Context to use

  • host – Host IP address to connect to

  • port – Port to connect to on server

Returns:

0 on success, negative error code on error.

Functions

int lpTrfServerInit(PLPContext ctx, char *host, char *port)

Initialize the Libtrf Server.

Parameters:
  • ctx – Context to use

  • host – Allow host set “0.0.0.0” to allow all incoming connections

  • port – Port to listen on during the negotiation process

Returns:

0 on success, negative error code on error.