company logo

ObjectSpace :: serverOption - Server options

Server options are options, which are set on the server side. Since each client connection creates its own thread on the server side, each client connection will get its own server options, which are thread static.

Return value:  Option value ( odaba::String & )

The option value contains the value set (or to be set) for an option.

In order to pass no option value, an empty string ( String() ) has to be passed.

Implementation details

  1. Get server option
    odaba::String ObjectSpace  :: serverOption ( odaba::String &sOptionName )

    The function returns the value for the server option passed in sOptionName.

    • sOptionName - Option name

      The name refers to an option set on the server or client side. Option names may be defined simply as an identifier (main option) or as an option hierarchy path when the option is defined on a lower level of the option hierarchy.

  2. to list
  3. Set server option
    odaba::String ObjectSpace  :: serverOption ( odaba::String &sOptionName, odaba::String &sOptionValue )

    The function sets the server option value passed in sOptionValue for the option passed in sOptionName. The option value will be set on the server, but also in the client thread.

    • sOptionName - Option name

      The name refers to an option set on the server or client side. Option names may be defined simply as an identifier (main option) or as an option hierarchy path when the option is defined on a lower level of the option hierarchy.

    • sOptionValue - Option value

      The option value contains the value set (or to be set) for an option.

      In order to pass no option value, an empty string ( String() ) has to be passed.

  4. to list