Menu

#132 rdesktop as library

open
nobody
None
5
2012-11-29
2008-12-13
No

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.

Discussion

  • Nobody/Anonymous

    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.

     
  • Vic Lee

    Vic Lee - 2009-02-26

    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

     
  • Vic Lee

    Vic Lee - 2009-04-25

    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

     
  • Vic Lee

    Vic Lee - 2009-04-25

    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...