By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,217 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,217 IT Pros & Developers. It's quick & easy.

TCPClient and Asyncronous Socket Problem

P: n/a
Dear all,

I am writing to a C# program to connect to the telnet server and getting
data; however, I know that I can use either TCPClient and Asyncronous Socket
to do the program. However, I don't know which is better and why. Can any
one tell me about this? Thank you for all of your help.

Alex
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"alex002" <al**@f-technology.com> wrote in message
I am writing to a C# program to connect to the telnet server and getting data; however, I know that I can use either TCPClient and Asyncronous Socket to do the program. However, I don't know which is better and why. Can any
one tell me about this? Thank you for all of your help.


Neither of them is better, they're just different. The TcpClient is a
somewhat more high-level class than the Socket class and a little bit easier
to work with. The Socket class is often considered to be a little bit more
difficult than the TcpClient class but offers more options.

Basically, it all depends on the programmer's taste. If you like working
with streams, the TcpClient is the best choice. If streams are not your
thing, you may want to check out the Socket class.

Regards,
Pieter Philippaerts
Managed SSL/TLS: http://www.mentalis.org/go.php?sl
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.