...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiGetClientId(SdaiString clientName,
SdaiClientId *clientId,
SdaiString *hostName);
|
Returns the coresponding client Id of a given client Name.
...
All clients that connect to an EDM Server will have assigned a unique numeric client Id. Defining a client name, however, is optional. Therefore this function may only be used to retrieve the client Ids of clients that are connected with the EDM Server with a defined client name.
...
Arguments
...
Type | Name | Comment |
SdaiString | ClientName | The defined client name of the connected client. Use edmiDefineClientName to define client names. |
SdaiClientId | *clientId | Address of a variable that will receive the unique numeric id that identifies the connected client. |
SdaiString | *hostName | Address of a string pointer that will receive the host name at which the client process is running. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat;
SdaiString myHostName;
SdaiClientId myClientId;
SdaiString myClientName = "My Client Name";
. . .
edmiDefineClientName(myClientName);
if (rstat = edmiGetClientId(myClientName, &myClientId, &myHostName)) {
printf("\nError %d in edmiGetClientId: %s", rstat,
edmiGetErrorText(rstat));
goto error;
} |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|