Click here to Skip to main content
15,742,655 members
Home / Discussions / C#
   

C#

 
GeneralRe: what is the differcence between close and dispose with Process instance? Pin
fu09-Jun-04 16:52
fu09-Jun-04 16:52 
GeneralRe: what is the differcence between close and dispose with Process instance? Pin
Heath Stewart10-Jun-04 3:09
protectorHeath Stewart10-Jun-04 3:09 
AnswerRe: what is the differcence between close and dispose with Process instance? Pin
Alvaro Mendez9-Jun-04 8:45
Alvaro Mendez9-Jun-04 8:45 
GeneralCrystal Report and Dataset Pin
amatyasik9-Jun-04 2:00
amatyasik9-Jun-04 2:00 
GeneralRe: Crystal Report and Dataset Pin
Heath Stewart9-Jun-04 2:14
protectorHeath Stewart9-Jun-04 2:14 
GeneralRe: Crystal Report and Dataset Pin
Alex Getman9-Jun-04 7:00
Alex Getman9-Jun-04 7:00 
General. Pin
hssaroch9-Jun-04 1:40
hssaroch9-Jun-04 1:40 
GeneralRe: FTP and Telnet client class in C# Pin
Heath Stewart9-Jun-04 2:51
protectorHeath Stewart9-Jun-04 2:51 
If you're looking for samples, the best thing to do is try searching. The following google result turned up many good projects that you could use in your projects: http://www.google.com/search?q=C%23+FTP[^].

As far as telnet goes, there really isn't a protocol. "Telnet" simply describes a socket connection with a known character encoding. For example, I can telnet to my mail server on port 25 and type SMTP commands directly, or telnet to my web server on port 80 and make requests. Telnet is just a bare-bones TCP socket connection. The protocol is whatever protocol the daemon you're connecting to uses, like HTTP, SMTP, etc. See the TcpClient class in the .NET Framework SDK.

For what is traditionally thought as telnet, you need to echo input and output. Using the TcpClient, get the NetworkStream using TcpClient.GetStream. You use this to send commands and receive output. If you expect this to be all text, instantiate a StreamReader and a StreamWriter to read and write from the NetworkStream.

 

Microsoft MVP, Visual C#
My Articles
AnswerRe: FTP and Telnet client class in C# Pin
sudreshan_116-Jul-09 1:08
sudreshan_116-Jul-09 1:08 
QuestionUSB port programming?? Pin
EdgarBM9-Jun-04 1:26
EdgarBM9-Jun-04 1:26 
AnswerRe: USB port programming?? Pin
Heath Stewart9-Jun-04 2:44
protectorHeath Stewart9-Jun-04 2:44 
GeneralA ListBox problem Pin
chenshch9-Jun-04 1:26
chenshch9-Jun-04 1:26 
GeneralRe: A ListBox problem Pin
Heath Stewart9-Jun-04 2:40
protectorHeath Stewart9-Jun-04 2:40 
GeneralMaking Automated Ebay Signin and Bidding program... Pin
geopass8-Jun-04 23:53
geopass8-Jun-04 23:53 
GeneralRe: Making Automated Ebay Signin and Bidding program... Pin
Colin Angus Mackay9-Jun-04 1:41
Colin Angus Mackay9-Jun-04 1:41 
Questionwhy MyUITypeEditor doesn't work in runtime at some case ? Pin
pig12348-Jun-04 23:47
pig12348-Jun-04 23:47 
QuestionMeta Tags in RTF file? Pin
sachinkalse8-Jun-04 23:05
sachinkalse8-Jun-04 23:05 
AnswerRe: Meta Tags in RTF file? Pin
Heath Stewart9-Jun-04 2:33
protectorHeath Stewart9-Jun-04 2:33 
GeneralRemoting in Windows CE Pin
evilnut8-Jun-04 20:56
evilnut8-Jun-04 20:56 
GeneralRe: Remoting in Windows CE Pin
Heath Stewart9-Jun-04 2:25
protectorHeath Stewart9-Jun-04 2:25 
GeneralPosting records in 2 data grids Pin
orpus8-Jun-04 20:25
orpus8-Jun-04 20:25 
GeneralRe: Posting records in 2 data grids Pin
Vasek8-Jun-04 22:11
Vasek8-Jun-04 22:11 
GeneralRe: Posting records in 2 data grids Pin
Heath Stewart9-Jun-04 2:17
protectorHeath Stewart9-Jun-04 2:17 
GeneralRe: Posting records in 2 data grids Pin
Heath Stewart9-Jun-04 2:20
protectorHeath Stewart9-Jun-04 2:20 
Questionup,down,right,left keys not working with KeyDown event? Pin
User 9625788-Jun-04 20:20
User 9625788-Jun-04 20:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.