Hi All, I'm trying to figure out how to create sessions to multiple remote openhpi daemons and obtain information etc from them.
>From what I can tell, the only way to connect to a remote daemon is to set the OPENHPI_DAEMON_HOST environment variable and the client library will use this variable whenever it needs to transfer data over the session. This is fine if I only want to connect to one daemon, but I would like to be able to connect to multiple remote daemons as well as a local one. Ideally the host address would be stored in the session, but currently the CreateConnx function which creates the actual connections has no knowledge of session information and appears to be called from many locations in the code. Apart from this, I can't actually see anything in the SAHPI API that even allows passing in of the host to connect to, so a non-API compliant change would have to be made to pass in the host to connect to when creating a new session. Can anybody suggest a way around this? I guess one possible solution would be to have the client app running as a separate process for each remote connection with the OPENHPI_DAEMON_HOST environment variable set to the relevant value for each process, but this is definitely not ideal. Regards, Luuk ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Openhpi-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openhpi-devel
