...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiGetMyClientId(SdaiClientId *myClientId,
SdaiString *myHostName,
SdaiString *myClientName);
|
Returns info about my clients connection to an EDM Server.
When connecting to an EDM Server, all clients will be assigned unique numeric client Ids. Optionally, all clients may also define a client name for them selves. This will simplify the identification of my client process on the EDM Server when all clients are listed by edmiWhoIsOn. Related functions: edmiWhoIsOn, edmiDefineClientName, edmiGetClientId, edmiGetClientNames, edmiResetClient.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetMyClientId(SdaiClientId *myClientId,
SdaiString *myHostName,
SdaiString *myClientName);
Arguments:
Arguments
...
Type | Name | Comment |
SdaiClientId | *myClientId | Address of a variable that will receive the client Id of my current connection with the EDM Server. |
SdaiString | *myHostName | Address of a string pointer that will receive the name of the host at which my client process is running. |
SdaiString | *myClientName | Address of a string pointer that will receive the optionally defined name of my clients current connection with the EDM Server. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat; SdaiClientId myClientId; SdaiString myHostName; SdaiString myClientName; . . . if (rstat = edmiGetMyClientId(&myClientId,&myHostName,&myClientName)) { |
...
printf("\nError %d in edmiGetMyClientId: %s", rstat, |
...
edmiGetErrorText(rstat)); |
...
goto error; |
...
} printf("\nMy Unique Client Id is: %d", myClientId); |
...
printf("\nI'm currently located at %s", myHostName); |
...
if (strlen(myClientName)) { |
...
printf("\nMy client name is %s", myClientName); |
...
} |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|