01-22-06 11:11 PM
Alex Vinokur wrote:
> IPv4
> ----
> char* buffer = malloc (len);
> int recv(int s, void *buffer, size_t len, int flags);
>
> To use recv() in IPv4 we should allocate buffer of maximum allowed size
> before calling recv().
>
> On other hand, C++ STL enables us to fill buffer without allocating
> memory before calling functions (for instance, using stringstream)
>
>
> Does IPv6 use such a property of C++?
IPv6 is a protocol, it's not directly related to a specific programming
language.
The standard BSD socket API is a C API ,and is quite similar for ipv4
and ipv6. Search for a library for C++ that has the feature you want,
maybe someone has constructed such a library.
[ Post a follow-up to this message ]
|