开发者

RDP protocol for c++

Im looking for code that connects to another computer via remote desktop connection and c开发者_Python百科hecks if the connection was successful or not.

I packet logged and found out there was a galaxy worth of packets so i was wondering if there was some easy code out there.


There really isn't anything easy about RDP, that protocol stack is huge and builds on the ITU OSI protocols, which includes a fair amount of ASN.1/BER.

Your best bet is the code that's in FreeRDP.


A bit of terminology: you want a "RDP client library for C++".

As others have mentioned, look into the "FreeRDP" and "rdesktop" projects.

With FreeRDP, you're going to get a suite of libraries (each one doing it's thing). With rdesktop, you're going to get a client app (which you have to break the C code out of, and "build" your C++ api around).

If this is a new project, I'd pick FreeRDP over rdesktop, as they have libraries available with your C++ interface already in place.


Do you need to check if an RDP server is present, but not authenticate? In this case all you'd need are the first couple of packets used to negotiate protocol security. You can find the code in FreeRDP in libfreerdp-core/nego.c.


@Blanker1231 : You should have look on rdesktop code , its in c but can be very easily modified to be used in a C++ code , all you have to do is bridge their Struct Stream effectively .

moreover I have worked on a Rdp 7+ implementation ages ago in qt/c++ for a , so recently just for fun of it i used all of my experience and wrote a RDP parser and code generator and open sourced it on https://github.com/shashanksingh/Code-Generator-for-RDP Right now it dead simple and i am still working on it more intelligent . Word of caution it doesn't generate everything . Examples includes demo.def which on compilation will generate all the class os ms-fscc used in ms-rdp @Blanker1231 if you ever feel like , just fork the implementation and start pushing stuff in

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜