Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4605
  • Last Modified:

VNC *SERVER* Source Code in C#

I would like to know if i can find some source code for VNC SERVER, written in C#.

Does anyone got a link for that?

I've found many VNC Viewer sources, but only few Servers.  Those i've found were written in C++.

IMPORTANT: Do not answer if you are not sure that the link you are providing contain source code for the specific language i've requested, or if it's a viewer only.
0
Christian de Bellefeuille
Asked:
Christian de Bellefeuille
  • 7
  • 5
1 Solution
 
pasoloCommented:
I had downloaded it weeks ago, the link is:
http://dotnetvnc.sourceforge.net/

PS: It works very well
0
 
pasoloCommented:
Sorry, you want a server:(
0
 
pasoloCommented:
Probably has never been done. Performance is expected to be too bad. GDI++ os not know for speed and trying to fast bitblt with PInvoke looks impossible. But would be a nice try:)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Christian de BellefeuilleProgrammerAuthor Commented:
Yes, i want a SERVER.

I don't want to be rude, but how the hell did you missed that?
It's in the subject, in CAPITAL letters
It's in the body of my request, in BOLD / ITALIC / UNDERLINE
I've added an IMPORTANT note in BOLD to make sure that no one would come up with a stupid answer that doesn't match my question.

You know very much that no one else will answer since they will see "4 comments" on my question.  I'm going to have to post & delete questions, again and again until i get an answer.
0
 
Christian de BellefeuilleProgrammerAuthor Commented:
if any king pin can help me here, i would really appreciate... TheLearnedOne, carl, kaufmed, tgerbert, etc...
0
 
pasoloCommented:
Then do it yourself in BOLD and CAPITAL letters.
0
 
Christian de BellefeuilleProgrammerAuthor Commented:
Ok.  Sorry for what i said, but i've got 2 consecutive failure like this and i got really mad.  I've got to repost the questions and it pissed me off.

You are probably right about it: it probably never been done.  I already had that guess because i've googled for a while before posting this question, and i've found nothing.  This is why i posted here to see if i just didn't missed something.

Is there any site who have done some extensive tests to see how slow it perform on specific Pinvoke?

The only way to reduce the number of Pinvoke would be to do some test with the size of the blocks that you check & copy.  Bigger are the "squares", less we have pinvoke... but it has some drawback on the bandwidth.
0
 
pasoloCommented:
lol. Some people made a VNC server in Java and others in VB 6. I don't think anyone need those because performance counts and neither .Net nor the others are good choices for performance. VNC is already slow, particularly since they started using c++ with all those classes.
0
 
Christian de BellefeuilleProgrammerAuthor Commented:
Well, i'll perform some test before i start the development of what we got to do.

I thought that it would be nice to use .NET since there's compression & encryption.

I'll perform different commands 100 000 times if necessary, to see how it perform in C++ vs C#.
0
 
pasoloCommented:
ok. the important is the fun it will provide
0
 
Christian de BellefeuilleProgrammerAuthor Commented:
I'll give a B because in the question i've specified "server".

But i give the points because pasolo explained a performance issue with the pinvoke.

There's also some other things that we might have to consider if we want to develop a VNC like application.  Global System Hooks doesn't seems to be done in 100% managed app.   I've seen some hook coded with a mix of C++ (unmanaged) and C# (managed).
0
 
pasoloCommented:
Hooks do not provide much of a boost and in Windows Vista or 7 you will not be able to hook windows with higher privilege level.
Thank you for the points
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now