coolfire Posted January 22, 2004 Posted January 22, 2004 Hi all, where is the difference between the class socket and tcp? If i create a Client or Server which exchange messages, which method is faster(using socket class for tcp or tcp class)? When should i use which class? Thx Quote
Celeron Posted March 24, 2004 Posted March 24, 2004 TCPClient has a bit more overhead than the Socket class, and in few cases, is more buggy. I've always prefered using Socket. Quote
Arch4ngel Posted March 24, 2004 Posted March 24, 2004 Socket is much low-level than TCP... so it must be faster than TCP... I'll already used socket and it's keeping a fast transfert but I never used TCP... TCP must be a little slower since it require 1 send from each computer... 1 paquet with data from source 1 paquet with confirmation of reception from destination etc... so I think TCP is slower than socket Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.