diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-08 17:13:42 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-08 17:13:42 +0000 |
commit | e460562baa33628d469424a13c3448c53aa02c65 (patch) | |
tree | d5739fa6a639237dca6b3825498d062a4d71e679 /examples | |
parent | 100697d2aa6874b040c714dd46f6dbd951e552a3 (diff) | |
download | ATCD-e460562baa33628d469424a13c3448c53aa02c65.tar.gz |
ChangeLogTag:Sun Apr 08 12:10:30 2001 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp | 4 | ||||
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/CPP-memserver.cpp | 2 | ||||
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/Makefile | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp index 37182fd2c38..1c17b18b675 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp @@ -21,9 +21,9 @@ run_client (void) { ACE_MEM_Connector connector; ACE_MEM_Stream stream; - ACE_INET_Addr server_addr (ACE_DEFAULT_SERVER_PORT, "COYOTE"); + ACE_MEM_Addr server_addr (ACE_DEFAULT_SERVER_PORT); - if (connector.connect (stream, server_addr) == -1) + if (connector.connect (stream, server_addr.get_remote_addr ()) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "connect"), -1); char buf [MAXPATHLEN]; diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-memserver.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-memserver.cpp index 0dcf1c29cbc..4ddf18963aa 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-memserver.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-memserver.cpp @@ -55,7 +55,7 @@ run_event_loop (u_short port) new_stream.send (buf, len); } - return new_stream.remove (); + return new_stream.fini (1); } int diff --git a/examples/IPC_SAP/SOCK_SAP/Makefile b/examples/IPC_SAP/SOCK_SAP/Makefile index 4e08bbb7b8d..72d0ba025a9 100644 --- a/examples/IPC_SAP/SOCK_SAP/Makefile +++ b/examples/IPC_SAP/SOCK_SAP/Makefile @@ -15,11 +15,13 @@ BIN = CPP-inclient \ CPP-inserver \ CPP-inserver-fancy \ CPP-inserver-poll \ + CPP-memclinet \ + CPP-memserver \ CPP-unserver \ FD-unclient \ FD-unserver \ C-inclient \ - C-inserver + C-inserver LSRC = $(addsuffix .cpp,$(BIN)) |