Development back on the trunk!
[crack-attack.git] / enet / docs / FAQ.dox
blob484b818a4229ce47d3c24214714f5e24482185a9
1 /**
2  @page FAQ Frequently Answered Questions
4 @section Q1 Is ENet thread safe?
6 ENet does not use any significant global variables, the vast majority
7 of state is encapsulated in the ENetHost structure.  As such, as long
8 as the application guards access to this structure, then ENet should
9 operate fine in a multithreaded environment.
10    
11 @section Q2 Isn't ENet just re-inventing TCP?!  What's the point?
13 In a perfect world, that would be true.  But as many have found, using
14 TCP either in lieu of or in conjunction with UDP can lead to all kinds
15 of nightmares.  TCP is a good, solid protocol, however it simply isn't
16 up to the task of real-time games.  Too much of TCP's implementation
17 dictates a policy that isn't practical for games.  If you want to use
18 TCP, then do so -- this library is for people that either don't want
19 to use TCP or have tried and ended up being discouraged with the
20 performance.