Used C++ interface instead of C for setting server parameters.