HcommEndpointDestroy
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
x |
|
x |
|
x |
|
x |
|
x |
Function
Destroys a communication endpoint.
Prototype
1 | HcommResult HcommEndpointDestroy(EndpointHandle endpointHandle) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
endpointHandle |
Input |
Endpoint handle. For details, see EndpointHandle. |
Returns
HcommResult: 0 on success; else, failure.
Restrictions
None
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | const EndpointDesc endpointDesc = { .protocol = COMM_PROTOCOL_UBC_TP, .commAddr = { .type = COMM_ADDR_TYPE_IP_V4, .addr = {{192, 168, 1, 100}} }, .loc = { .locType = ENDPOINT_LOC_TYPE_DEVICE, .device = { .devPhyId = 0, .superDevId = 0, .serverIdx = 0, .superPodIdx = 0 } }, .raws = {0} }; EndpointHandle endpointHandle = nullptr; HcommResult result = HcommEndpointCreate(&endpointDesc, &endpointHandle); result = HcommEndpointDestroy(endpointHandle); |
Parent topic: Basic Resource Management