![]() |
License / Documentation home / Help and feedback | ![]() |
Although some servers connected to the Hub might be dedicated to a particular session (such as when they connect using -contact_hub and -session_id), most servers support multiple sessions through the same connection to the Hub. So, for instance, a single parser may be responsible for parsing all the user utterance strings for all the sessions currently connected to the Hub.
If new_session opened a new log every time it was called, any program which calls it would end up writing a very short log which covered the time from when the session was created (essentially, when the Hub first saw the session ID) to when new_session was called. Since this behavior would be unavoidable when new_session is used correctly, new_session has been implemented not to open a new log the first time it is called on a given session.
If you want to end a session explicitly, you can call the Builtin server function end_session.
If you want to control the memory state of a given session, you can do that from the server as well.
void GalSS_EnvUpdateSessionID(GalSS_Environment
*env, const char *session_id)
Sets the session_id as the session for this environment. The session_id
is copied. This function can safely be called repeatedly on the same call
environment to change the session context.
char *GalSS_EnvGetSessionID(GalSS_Environment
*env)
Returns the session_id for this environment. The session_id
is not copied. It may be NULL.
![]() |
License / Documentation home / Help and feedback | ![]() |