Tobias Rundström wrote:
>
> Hello MySQL developers. I have a question about the MYSQL* struct.
>
> I am trying to build a connection pool daemon for mysql, a program that
> should handle all connections to my mysql server and then share them to
> program (in this case a cgi script).
>
> To do this I compiled libmm and wanted to send the struct over with unix
> sockets. But the struct contains pointers to other memory adresses. What I
> know need is a way to copy the struct in to my shared memory struct and I
> wonder if there are any better way to do this then to do it manualy?
In order to share a connection you must stay in the same process - so using
shared memory will not work even if you copy all the data structures.
--
MySQL Development Team
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sasha Pachev <sasha@stripped>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, http://www.mysql.com/
/_/ /_/\_, /___/\___\_\___/ Provo, Utah, USA
<___/