Threads and socket connections
I have a basic dialog program that connects to another computer over the internet to retrieve some files (small) using a CSocket connection.
It does this repeatedly about every second or 2 for a limited amount of time.
What I am noticing is that the program hangs, or locks up momentarily sometimes during this. Example: moving the mouse over the dialog stops and starts.
Seems like the sending and receiving is stopping the rest of the program.
Is it possible to put sends and receives in a thread ? If so, is there an example of this somewhere?
Re: Threads and socket connections
i m working in VS 6.0 C++. non mfc
trying to create the thread using
Code:
_beginthread(func,0,NULL);
but i m getting error
error C2065: '_beginthread' : undeclared identifier
i had linked to MSVCRT.LIB and using process.h but still getting this error
what can be the possible cause????
Virender
Re: Threads and socket connections
You can also use CreateThread()
Re: Threads and socket connections