I'm using the ACE_Service_Handler classe with an ACE_SOCK_Stream. When my
"Service_Handler::handle_input()" method is called I know that there is some
data available for reading from my ACE_SOCK_Stream or that the connection
has been closed by a client. Anyway, I don't know how big to allocate my
buffer in order to read in all the data at once.
in this situation:
int buf_size = ?;
char socket_data = new char[buf_size];
ACE_Time_Value *timeout = 0;
int result = this->peer().recv_n(
socket_data, buf_size, timeout, bytes_transferred);
Is there a portable way to determine buf_size?Quote:}
Johnny Tucker Magis Networks, Inc.
direct: (858) 523-2383 www.magisnetworks.com