Lines Matching defs:Set
30 void Set(size_t bytes, ConnectionStatus status, DWORD error_code) {
36 void Set(size_t bytes, ConnectionStatus status, llvm::StringRef error_msg) {
148 // Set the disconnect event so that any blocking reads unblock, then cancel
175 return_info.Set(0, eConnectionStatusNoConnection, ERROR_INVALID_HANDLE);
199 return_info.Set(0, eConnectionStatusInterrupted, 0);
202 return_info.Set(0, eConnectionStatusTimedOut, 0);
205 return_info.Set(0, eConnectionStatusError, ::GetLastError());
218 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0);
220 return_info.Set(bytes_read, eConnectionStatusError, result_error);
222 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0);
224 return_info.Set(bytes_read, eConnectionStatusSuccess, 0);
229 return_info.Set(0, eConnectionStatusEndOfFile, 0);
232 return_info.Set(0, eConnectionStatusError, ::GetLastError());
268 return_info.Set(0, eConnectionStatusNoConnection, ERROR_INVALID_HANDLE);
278 return_info.Set(0, eConnectionStatusError, ::GetLastError());
283 return_info.Set(bytes_written, eConnectionStatusError, ::GetLastError());
287 return_info.Set(bytes_written, eConnectionStatusSuccess, 0);