Multithreading Problem
I''m writing a game that uses OpenGL and Winsock, and I need to multithread portions of the server. I tried using MFC, but including the MFC libraries gave me a bunch of linker errors. Are there libraries I need to include along with MFC, or is there just a conflict with the OpenGL and Winsock libraries? If so, can I still do multithreading easily without using MFC? How? Many thanks.
To answer your question: You can do multithreading using the Win32 API.
To give you an advice: Don''t use multithreading if you don''t have to, use non-blocking sockets (don''t know if you are going to use multithreading for blocking sockets but I''m taking a guess)
To give you an advice: Don''t use multithreading if you don''t have to, use non-blocking sockets (don''t know if you are going to use multithreading for blocking sockets but I''m taking a guess)
I had thought of using nonblocking sockets, but don''t have enough experience with them to know how that would work. Would you mind sending me some sample code or point me to a website? Thanks.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement