apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject Re: apr_socket_data_set
Date Mon, 28 Feb 2005 19:07:56 GMT
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

Mime
View raw message