equal
deleted
inserted
replaced
82 long clientId; |
82 long clientId; |
83 |
83 |
84 TCDEBUGOPEN(); |
84 TCDEBUGOPEN(); |
85 |
85 |
86 TCDEBUGLOGS("nativeConnect\n"); |
86 TCDEBUGLOGS("nativeConnect\n"); |
|
87 if (!gManager->IsServerRunning()) |
|
88 { |
|
89 TCDEBUGLOGS("Server not running\n"); |
|
90 TCDEBUGCLOSE(); |
|
91 return TCAPI_ERR_COMM_SERVER_RESPONSE_TIMEOUT; |
|
92 } |
|
93 |
87 |
94 |
88 gManager->m_Server->WaitforServerPipeAccess(); |
95 gManager->m_Server->WaitforServerPipeAccess(); |
89 |
96 |
90 { |
97 { |
91 jboolean isCopy = false; |
98 jboolean isCopy = false; |
1253 unsigned long osError = 0; |
1260 unsigned long osError = 0; |
1254 |
1261 |
1255 TCDEBUGOPEN(); |
1262 TCDEBUGOPEN(); |
1256 TCDEBUGLOGS("nativeSendMessage\n"); |
1263 TCDEBUGLOGS("nativeSendMessage\n"); |
1257 TCDEBUGLOGA1(" inClientId=%d\n", inClientId); |
1264 TCDEBUGLOGA1(" inClientId=%d\n", inClientId); |
|
1265 if (!gManager->IsServerRunning()) |
|
1266 { |
|
1267 // return right away if TCFServer is dead |
|
1268 TCDEBUGLOGS("nativeSendMessage: server is dead\n"); |
|
1269 TCDEBUGCLOSE(); |
|
1270 return TCAPI_ERR_COMM_SERVER_RESPONSE_TIMEOUT; |
|
1271 } |
1258 |
1272 |
1259 gManager->m_Server->WaitforServerPipeAccess(); |
1273 gManager->m_Server->WaitforServerPipeAccess(); |
1260 |
1274 |
1261 jboolean isCopy = false; |
1275 jboolean isCopy = false; |
1262 // formatting options |
1276 // formatting options |