차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 | |||
|
ko:bs2_getsocketretrycount [2023/02/14 14:49] mashin |
ko:bs2_getsocketretrycount [2023/03/02 16:04] (현재) kkshin |
||
|---|---|---|---|
| 줄 21: | 줄 21: | ||
| ==== 함께 보기 ==== | ==== 함께 보기 ==== | ||
| [[BS2_SetSocketRetryCount]] | [[BS2_SetSocketRetryCount]] | ||
| - | ==== 샘플코드(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> | ||
| - | |||
| - | ==== 샘플코드(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> | ||