diff options
author | jcej <jcej@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-03 00:19:18 +0000 |
---|---|---|
committer | jcej <jcej@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-03 00:19:18 +0000 |
commit | e0056b3d48f0f028e1b69f032e093f221d2bafeb (patch) | |
tree | e2a843702ce0f3bbe8b364ac8c91145df502a2b2 | |
parent | 4d06060b347f8d0b035c97e04d1427de98ea79c7 (diff) | |
download | ATCD-e0056b3d48f0f028e1b69f032e093f221d2bafeb.tar.gz |
*** empty log message ***
-rw-r--r-- | docs/tutorials/001/logger.h | 4 | ||||
-rw-r--r-- | docs/tutorials/001/page04.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorials/001/logger.h b/docs/tutorials/001/logger.h index 32546dd5ffb..3ea531b842c 100644 --- a/docs/tutorials/001/logger.h +++ b/docs/tutorials/001/logger.h @@ -95,7 +95,7 @@ protected: Create and initialize a small receive buffer. The extra byte is there to allow us to have a null-terminated string when it's over. */ - char buf[128+1]; + char buf[BUFSIZ+1]; /* Invoke the recv() method of the ACE_SOCK_Stream to get some data. It will @@ -121,7 +121,7 @@ protected: and the header sys/socket.h for the gory details. */ ssize_t retval; - switch( retval = this->cli_stream_.recv(buf,sizeof(buf)-1) ) + switch( retval = this->cli_stream_.recv(buf,BUFSIZ) ) { case -1: ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) %p bad read\n", "client logger"), -1); diff --git a/docs/tutorials/001/page04.html b/docs/tutorials/001/page04.html index 18950902db8..22c35a7d4d4 100644 --- a/docs/tutorials/001/page04.html +++ b/docs/tutorials/001/page04.html @@ -116,7 +116,7 @@ protected: Create and initialize a small receive buffer. The extra byte is there to allow us to have a null-terminated string when it's over. */</font> - char buf[128+1]; + char buf[BUFSIZ+1]; <font color=red>/* Invoke the recv() method of the ACE_SOCK_Stream to get some data. It will @@ -142,7 +142,7 @@ protected: and the header sys/socket.h for the gory details. */</font> ssize_t retval; - switch( retval = this->cli_stream_.recv(buf,sizeof(buf)-1) ) + switch( retval = this->cli_stream_.recv(buf,BUFSIZ) ) { case -1: ACE_ERROR_RETURN ((LM_ERROR, "<font color=green>(%P|%t) %p bad read\n</font>", "<font color=green>client logger</font>"), -1); |