socket and tcp

coolfire

Newcomer
Joined
Oct 6, 2003
Messages
14
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
 
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
 
Back
Top