7. Server IPv6 Endpoint Support#

cuObjServer accepts IPv4 and IPv6 endpoint address strings in the ip constructor argument. The constructor takes address and port separately, so an IPv6 literal is passed without square brackets:

cuObjServer server("fd00::10", 18515, CUOBJ_PROTO_RDMA_DC_V1);

IPv4 usage is unchanged:

cuObjServer server("192.168.1.100", 18515, CUOBJ_PROTO_RDMA_DC_V1);

Invalid address strings cause the RDMA session start to fail. Check isConnected() after construction.

When the application control path represents an IPv6 endpoint as a combined address-and-port string, use square brackets in that control-path format, for example [fd00::10]:18515. Do not use square brackets for the cuObjServer constructor because ip and port are separate arguments.