Sambar Server Documentation
|
sa_conn_key |
SA_CONN | *connection; |
SA_INT | action; |
SA_CHAR | *key; |
SA_VOID | **value; |
connection | Server connection. |
action |
To get the data associated with key, specify SA_GET. To associate data with key, specify SA_SET. To clear the data associated with key, specify SA_CLEAR. |
key | The key (name) associated with the data being retrieved, set, or cleared. The function's key parameter enables an application to separately store and retrieve multple pieces of data by uniquely naming each one. The length of the key can not exceed 50 bytes. |
value |
If action is SA_GET, the value of key is returned in this parameter. If action is SA_SET, specify the value to assign to key. If action is SA_CLEAR, specify NULL. |
Applications can associate data of any kind with a key.
Applications are responsible for allocating memory in which to store the data before calling sa_conn_key(SA_SET). This also means that when clearing data, applications are responsible for de-allocating that same memory.
© 1998 Sambar Technologies. All rights reserved. Terms of Use.