Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
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

...

TypeNameComment
SdaiServerContextserverContextIdContext 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

TypeNameComment
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 */
SdaiSelectserverContextPropertyValueNew property value

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 EdmiError rstat;
 if (rstat = edmiDefineServerContextProperty(. . . ) {
	printf("\nError %d in edmiDefineServerContextProperty", rstat); 
	goto err; 
 }
 . . .

 

 

Example

...

 

Code Block
languagecpp
 EdmiError rstat;
 SdaiUnsignedInt serverContextId;
 . . .
 if (rstat = edmi. . . () {
 printf("\nError %d in edmi . . .", rstat); 
 goto err; 
 }
 . . .

...