serverName

const char* serverName(unsigned short index = 1) const

index
The index of a connected server in the list. The default index is 1.

Returns the name of the indexth server. See Finding potential servers in the CICS® Transaction Gateway: Programming Guide.