C Sharp 2008 Telnet Server Sample

J

Joe

Every thing I have fount was for C Sharp 2005, and I can't get any thing
to work. Can some some show me a code for a telnet server in C Sharp
2008 that will a allow more then one connection.
 
N

Nicholas Paldino [.NET/C# MVP]

Joe,

If your samples work in VS.NET 2005, then they should work in VS.NET
2008 without any (or at the most, minimal) adjustments.

What are the errors that you are getting when you try to build/run it in
VS.NET 2008?
 
J

Joe

Nicholas said:
Joe,

If your samples work in VS.NET 2005, then they should work in VS.NET
2008 without any (or at the most, minimal) adjustments.

What are the errors that you are getting when you try to build/run it
in VS.NET 2008?
Well I'm not sure just what errors. But to start with class not fount
or invalid socket and so on. I just wanted to see if I could get some
one in C# 2008, So that I can see if I can get this to work.

whats happening is and I know for a fact that in 2008 the codes and
language were changed from 2005. So the coding is way off.

Most of the errors I get are for C# 2005, and they just don't work in
2008. Now some of the errors I could fix. But not all of them.

Thats why I was hoping form a sample code to compare it to the one that
I do have. I all so think that The code I do have is for C# consol and
not a windows application.
 
C

christery

Most of the errors I get are for C# 2005, and they just don't work in
2008. Now some of the errors I could fix. But not all of them.

The errors dont work, fine... so the errors u fixed are gone but still
some (errors) wont work?
I thought I had a problem locating chr$(12) but now I see, my errors
dont work either...
//CY
 
J

Joe

Nicholas said:
Joe,

If your samples work in VS.NET 2005, then they should work in VS.NET
2008 without any (or at the most, minimal) adjustments.

What are the errors that you are getting when you try to build/run it
in VS.NET 2008?
Yep, I just check. All the samples I have are in the C# console and
won't work in the forms application. So that what I need is a sample of
a telnet server in C sharp Windows Application.
 
N

Nicholas Paldino [.NET/C# MVP]

Joe,

Well, why not create a TextBox of a fixed size (the size of the terminal
screen you are emulating) set it to a fixed font, and then write the
characters where you want.

The easiest thing to do would be to have a panel and actually do the
drawing of the characters yourself (it's just a fixed grid of characters in
a fixed font).
 
J

Joe

Nicholas said:
Joe,

Well, why not create a TextBox of a fixed size (the size of the
terminal screen you are emulating) set it to a fixed font, and then
write the characters where you want.

The easiest thing to do would be to have a panel and actually do the
drawing of the characters yourself (it's just a fixed grid of characters
in a fixed font).
Yes, I tried that and couldn't get it to show in the TextBox. I also
tried a ListBox too and it didn't work as well. Just don't know what you
try next
 
G

GuitarMan

Hi,
I am also looking for the source code for a Telnet server in C#. Where did
you find your code? I am also working on a multi-threaded server framework
that allows you to implement different protocols very easily without having
to worry about the mult-threading aspects.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top