diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-14 15:35:21 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-14 15:35:21 +0000 |
commit | be8b130ccc90db8da417911583334b8caa3d3af0 (patch) | |
tree | 7bd331e34b8c9b61d8a2f11db1431c0faec303d9 | |
parent | 175e8ba91a700b04b131b26c0e2c72d39666765f (diff) | |
download | ATCD-be8b130ccc90db8da417911583334b8caa3d3af0.tar.gz |
ChangeLogTag: Wed Jul 14 10:34:37 1999 David L. Levine <levine@cs.wustl.edu>
-rw-r--r-- | ChangeLog-99b | 6 | ||||
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp | 22 |
2 files changed, 17 insertions, 11 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b index bd81d37d409..3682e853bde 100644 --- a/ChangeLog-99b +++ b/ChangeLog-99b @@ -1,3 +1,9 @@ +Wed Jul 14 10:34:37 1999 David L. Levine <levine@cs.wustl.edu> + + * examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp: fixed typo, + ACE_LACKS_UNIX_DOMAIN_SOCKETS instead of + ACE_HAS_UNIX_DOMAIN_SOCKETS. + Wed Jul 14 10:22:29 1999 David L. Levine <levine@cs.wustl.edu> * ace/Singleton.*: added ACE_Unmanaged_Singleton and diff --git a/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp b/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp index 8593b619860..b55f437127e 100644 --- a/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp +++ b/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp @@ -1,16 +1,16 @@ // $Id$ #include "ace/LSOCK_Connector.h" -#include "ace/UNIX_Addr.h" - +#include "ace/UNIX_Addr.h" + ACE_RCSID(SOCK_SAP, FD_unclient, "$Id$") -#if defined (ACE_HAS_MSG) && !defined (ACE_HAS_UNIX_DOMAIN_SOCKETS) +#if defined (ACE_HAS_MSG) && !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS) // ACE_LSOCK Client. - -int -main (int argc, char *argv[]) -{ + +int +main (int argc, char *argv[]) +{ const char *file_name = argc > 1 ? argv[1] : "./local_data"; const char *rendezvous = argc > 2 ? argv[2] : ACE_DEFAULT_RENDEZVOUS; @@ -29,7 +29,7 @@ main (int argc, char *argv[]) ACE_ERROR_RETURN ((LM_ERROR, "%p", "open"), -1); // Send handle to server (correctly handles incomplete writes). - if (cli_stream.send_handle (handle) == -1) + if (cli_stream.send_handle (handle) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p", "send"), -1); char buf[BUFSIZ]; @@ -39,15 +39,15 @@ main (int argc, char *argv[]) ACE_ERROR_RETURN ((LM_ERROR, "%p", "recv"), -1); else if (n == 0) ACE_DEBUG ((LM_DEBUG, "server shutdown (bug in kernel?)\n")); - else + else ACE_DEBUG ((LM_DEBUG, "server %*s shutdown\n", n, buf)); // Explicitly close the connection. - if (cli_stream.close () == -1) + if (cli_stream.close () == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p", "close"), -1); return 0; -} +} #else int main (int, char *[]) { |