FAQ.dox 911 B

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