NWCCConnInfo
Returns the specified information for a given connection
typedef struct
nuint authenticationState ;
nuint broadcastState ;
nuint32 connRef ;
nstr treeName [NW_MAX_TREE_NAME_LEN];
nuint connNum ;
nuint32 userID ;
nstr serverName [NW_MAX_SERVER_NAME_LEN];
nuint NDSState ;
nuint maxPacketSize ;
nuint licenseState ;
nuint distance ;
NWCCVersion serverVersion ;
#ifdef NWCC_INFO_VERSION_2
pNWCCTranAddr tranAddr ;
#endif
#ifdef NWCC_INFO_VERSION_3
nuint32 identityHandle;
#endif
} NWCCConnInfo;
NWCCConnInfo = packed Record
authenticationState : nuint;
broadcastState : nuint;
connRef : nuint32;
treeName : Array[0..NW_MAX_TREE_NAME_LEN-1] Of nstr;
connNum : nuint;
userID : nuint32;
serverName : Array[0..NW_MAX_SERVER_NAME_LEN-1] Of nstr;
NDSState : nuint;
maxPacketSize : nuint;
licenseState : nuint;
distance : nuint;
serverVersion : NWCCVersion;
{$IFDEF NWCC_INFO_VERSION_2}
tranAddr : pNWCCTranAddr;
{$ENDIF}
{$IFDEF NWCC_INFO_VERSION_2}
identityHandle : nuint32;
{$ENDIF}
End;
The treeName structure field is used to give the tree name of a particular connection in functions such as NWCCGetAllConnRefInfo and NWCCGetConnRefInfo. You must strip off the trailing `_’ characters (that are padding the tree name out to the maximum length) to get a matching valid tree name. Other functions that depend on a valid tree name already strip the `_’ characters.