Function TRTSERVER_ServerId

Function Documentation

TRTSERVER_Error *TRTSERVER_ServerId(TRTSERVER_Server *server, const char **id)

Get the string identifier (i.e.

name) of the server. The caller does not own the returned string and must not modify or delete it. The lifetime of the returned string extends only as long as ‘server’ and must not be accessed once ‘server’ is deleted.

Return

a TRTSERVER_Error indicating success or failure.

Parameters
  • server: The inference server object.

  • id: Returns the server identifier.