edmiGetMyClientId

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.

 

 

Arguments


TypeNameComment
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


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

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

There are no items with the selected labels at this time.

Â