차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
ko:bs2_getsocketsslretrycount [2023/02/14 14:49]
mashin
ko:bs2_getsocketsslretrycount [2023/03/02 16:05] (현재)
kkshin
줄 21: 줄 21:
 ==== 함께 보기 ==== ==== 함께 보기 ====
 [[BS2_SetSocketSSLRetryCount]] [[BS2_SetSocketSSLRetryCount]]
-==== 샘플코드(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>​