Can an rdesktop library be shipped with resktop (the program) as a reference implementation of the library? This would allow for the possibility of writing rdesktop wrappers in GTK, QT, or other toolkits.
While I can see some benefits to such a change, it wouldn't be that easy to do, and it is already possible to write wrappers using the XEmbed protocol. For example, that is what KDE's KRDC wrapper does.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am also using rdesktop for my new project Grdc with XEmbed feature so first thing to say is THANKS FOR THIS GREAT PROJECT.
The problem using XEmbed is that I don't have any control over the display. For example, I have no way to scale the RDP window. While it's pretty easy for VNC because I am using LibVNCServer, I have the framebuffer in memory so it's just some calls to gdk_pixbuf_scale.
Just did a quick view of the rdesktop sources to evaluate the possibility to convert it to a library...
It seems it's almost impossible for me. All modules are using a lot of global / static variables which simply won't work in a multi-threaded application. For example g_hostname. What will happen if I use rdesktop as a library and connect to two servers in the same process space?
A huge code arrangement must be done to convert it to a library... That's probably a separated project.
Vic
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
While I can see some benefits to such a change, it wouldn't be that easy to do, and it is already possible to write wrappers using the XEmbed protocol. For example, that is what KDE's KRDC wrapper does.
Hi There,
I am also using rdesktop for my new project Grdc with XEmbed feature so first thing to say is THANKS FOR THIS GREAT PROJECT.
The problem using XEmbed is that I don't have any control over the display. For example, I have no way to scale the RDP window. While it's pretty easy for VNC because I am using LibVNCServer, I have the framebuffer in memory so it's just some calls to gdk_pixbuf_scale.
By the way, please visit my project http://grdc.sourceforge.net
Just did a quick view of the rdesktop sources to evaluate the possibility to convert it to a library...
It seems it's almost impossible for me. All modules are using a lot of global / static variables which simply won't work in a multi-threaded application. For example g_hostname. What will happen if I use rdesktop as a library and connect to two servers in the same process space?
A huge code arrangement must be done to convert it to a library... That's probably a separated project.
Vic
Or, maybe we make sure that each connection still has a dedicated process space, even we use it as a library. The might be an option...