Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • 2 months later...
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...