Christian Lee wrote:
Hi all, is it possible to send from server to client a handle to MySQL
connection.
for example then i'm trying:
server:
Code:
...
MYSQL mysql;
mysql_init(&mysql);
mysql_real_connect(&mysql,....);
...
send(socket,&mysql, sizeof(MYSQL),0);
-----------------
client:
Code:
...
MYSQL mysql;
recv(socket,&mysql,sizeof(MYSQL),0);
...
mysql_query(&mysql,...);
...
You definitely can't do that, the MYSQL structure contains internal
memory references and connection information that are only relevant to
your client.
Why don't you just open another connection to the mysql server ?
--
Philippe Poelvoorde
COS Trading Ltd.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]