...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError _CDECL edmiDefineServerContextPropertyBN (SdaiServerContext serverContextId, SdaiString serverContextPropertyName, SdaiSelect serverContextPropertyValue); #endif /* __STDC__ || __cplusplus */ /* Available serverContextProperty in the edmiDefineServerContextProperty() functions: */ #define SERV_CONTEXT_SESSION_TOKEN 01 #define SERV_CONTEXT_PERSON_NAME 02 #define SERV_CONTEXT_USER_NAME 04 #define SERV_CONTEXT_PASSWORD 010 /* setting the actual select struct element type = sdaiINDETERMINATE will unset the actual server context property */ #if defined(__STDC__) || defined(__cplusplus) EdmiError _CDECL edmiDefineServerContextProperty (SdaiServerContext serverContextId, SdaiInteger serverContextProperty, SdaiSelect serverContextPropertyValue); #endif /* __STDC__ || __cplusplus */ /* The edmiGetMySessionToken() and edmiGetMyPersonName() functions are implemented to enable EDMappServerr plug-ins to fetch the "sessionToken" and "personName" properties from the actual used server context. The returned string is located in a static internal buffer, one static buffer for each of these functions. Hence, the calling program should not free these strings by calling edmiFree(). In case the actual server context does not have any value for the actual property NULL is returned from the actual function call. */ #if defined(__STDC__) || defined(__cplusplus) SdaiString _CDECL edmiGetMySessionToken (void); SdaiString _CDECL edmiGetMyPersonName (void); |
Sets or updates a server context property.
Arguments
...
Type | Name | Comment |
SdaiServerContext | serverContextId | Context identification, from edmiDefineServerContext |
SdaiInteger | serverContextProperty | /* Available serverContextProperty in the edmiDefineServerContextProperty() functions: */ #define SERV_CONTEXT_SESSION_TOKEN 01 #define SERV_CONTEXT_PERSON_NAME 02 #define SERV_CONTEXT_USER_NAME 04 #define SERV_CONTEXT_PASSWORD |
...
Creates a detailed specification of the EDMInterface communication parameters for communication between an EDMclient and an EDMserver. A defined server context is identified by its unique numeric server context id. A server context id is a mandatory input parameter to all edmiRemote API function calls. Any number of server contexts may be defined in an EDMclient session at the same time, thereby allowing simultaneous access to any number of remote EDMdatabase located anywhere in the world by TCP or HTTP communication.
Arguments
Type | Name | Comment |
SdaiString | serverContextName | Optional name of the server context. Server context names must start with a character followed by any combination of alphanumeric characters and underscore. |
010
/* setting the actual select struct element type = sdaiINDETERMINATE will unset the actual server context property */ | ||
SdaiSelect | serverContextPropertyValue | New property value |
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat;
if (rstat = edmiDefineServerContextProperty(. . . ) {
printf("\nError %d in edmiDefineServerContextProperty", rstat);
goto err;
}
. . . |
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat; SdaiUnsignedInt serverContextId; . . . if (rstat = edmi. . . () { printf("\nError %d in edmi . . .", rstat); goto err; } . . . |
...