summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-05 03:26:35 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-05 03:26:35 +0000
commit55a096f39c6d8d3396b66fc8dfb02f030da2fe2d (patch)
treeb8262407931d2abd44b2b3b22856bc516875a438
parentc4ca9bcdede477106f34914fc0790767a745641a (diff)
downloadATCD-55a096f39c6d8d3396b66fc8dfb02f030da2fe2d.tar.gz
added comment about VxWorks hard-coding of hostname
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
index 3cec94a92e5..dfc752327b3 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
@@ -25,9 +25,14 @@ int main (int argc, char *argv[])
#if defined (VXWORKS)
ACE_DEBUG ((LM_DEBUG, "starting connect\n"));
+#if 1 // change this to 0 after hard-coding the hostname:port below
+ // The hostname is hardcoded because its inconvenient to pass
+ // command line arguments with VxWorks.
fprintf (stderr,
"CPP-inclient.cpp: you'll need to hard code the hostname:port on VxWorks!!!!\n");
+#endif /* 1 */
ACE_INET_Addr remote_addr ("<hard-coded hostname:10002");
+
if (con.connect (cli_stream, remote_addr) == -1)
#else
ACE_DEBUG ((LM_DEBUG, "starting non-blocking connect\n"));