Differences
This shows you the differences between two versions of the page.
en:bs2_setsocketsslretrycount [2023/02/28 14:53] mwkim created |
en:bs2_setsocketsslretrycount [2023/03/02 16:07] (current) kkshin |
||
---|---|---|---|
Line 25: | Line 25: | ||
==== See Also ==== | ==== See Also ==== | ||
[[BS2_GetSocketSSLRetryCount]] | [[BS2_GetSocketSSLRetryCount]] | ||
- | ==== Sample Code(C++) ==== | ||
- | <file cpp sample_setdebugfilelogex.cpp> | ||
- | const char* CURRENT_DIR = "."; | ||
- | const int MAX_SIZE_LOG_FILE = 100; // 100MB | ||
- | int sdkResult = BS2_SetDebugFileLogEx(DEBUG_LOG_ALL, DEBUG_MODULE_ALL, CURRENT_DIR, MAX_SIZE_LOG_FILE); | ||
- | if (BS_SDK_SUCCESS != sdkResult) | ||
- | { | ||
- | printf("BS2_SetDebugFileLogEx call failed: %d", sdkResult); | ||
- | return; | ||
- | } | ||
- | </file> | ||
- | |||
- | ==== Sample Code (C#) ==== | ||
- | <file csharp sample_setdebugfilelogex.cs> | ||
- | const string CURRENT_DIR = "."; | ||
- | const int MAX_SIZE_LOG_FILE = 100; // 100MB | ||
- | IntPtr ptrDir = Marshal.StringToHGlobalAnsi(CURRENT_DIR); | ||
- | result = (BS2ErrorCode)API.BS2_SetDebugFileLogEx(Constants.DEBUG_LOG_OPERATION_ALL, Constants.DEBUG_MODULE_ALL, ptrDir, MAX_SIZE_LOG_FILE); | ||
- | Marshal.FreeHGlobal(ptrDir); | ||
- | if (result != BS2ErrorCode.BS_SDK_SUCCESS) | ||
- | { | ||
- | Console.WriteLine("Got error({0}).", result); | ||
- | return; | ||
- | } | ||
- | </file> |