On Sun, 27 Feb 2005, Luca Renzi wrote:

> I'm a student and I need to use apr_lib for a little
> project.
>
> The question is:
> I don't understand what are data and key parameter for
> the function
> apr_socket_data_set.
>
> Could somebody explain?

Several APR data types include a userdata member that is of type
apr_table_t.  Basically the key and the data are whatever you want them to
be... the userdata table is an associative array.  You can attach some
extra structures, strings, or whatever to the socket and look them up
again later using the same key.

If you're trying to send data out the socket, this isn't the function
you're looking for.  :)

--Cliff

Reply via email to