diff options
Diffstat (limited to 'ACE/tests/SOCK_Test.cpp')
-rw-r--r-- | ACE/tests/SOCK_Test.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ACE/tests/SOCK_Test.cpp b/ACE/tests/SOCK_Test.cpp index 39f582e1857..e3405eaeabe 100644 --- a/ACE/tests/SOCK_Test.cpp +++ b/ACE/tests/SOCK_Test.cpp @@ -66,15 +66,14 @@ client (void *arg) const ACE_Time_Value def_timeout (ACE_DEFAULT_TIMEOUT); ACE_Time_Value tv (def_timeout); int result = ACE::handle_ready (cli_stream.get_handle (), &tv, - 1, // read_ready - 1, // write_ready - 0); - // we expect the handle to be at leat write_ready since it is freshly connected. + true, // read_ready + true, // write_ready + false); + // we expect the handle to be at least write_ready since it is freshly connected. if (result == -1) ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("(%P|%t) %p\n"), ACE_TEXT ("ACE::handle_ready")), 0); // Send data to server (correctly handles "incomplete writes"). - for (const char *c = ACE_ALPHABET; *c != '\0'; c++) if (cli_stream.send_n (c, 1) == -1) ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) %p\n"), ACE_TEXT ("send_n"))); |