GetDTarget
Function
Obtains the IP address of the decode node to which a request is sent.
Format
std::string GetDTarget() const;
Parameters
None
Usage Example
After a request object is constructed, set the IP address of the decode node to which a full inference request is sent for the request object, and then obtain the IP address of the decode node to which the request is sent.
1 2 3 4 5 | mindie_llm::InferRequestId runtimeReqId(0); std::shared_ptr<mindie_llm::InferRequest> runtimeRequest(runtimeReqId); std::string serverIp = ""; runtimeRequest->SetDTarget(serverIp); std::string ipTarget = runtimeRequest->GetDTarget(); |
Return Value
Target server IP address
Parent topic: InferRequest