Threads on the PS2
Posted: Tue Dec 30, 2008 4:35 am
Hello there!
I am doing a program for PC that can send files and messages to a server, and its port for the PS2. On PC, I am using the Visual Studio Windows Forms applications for the GUI, and on he PS2, I am developing my own GUI from the scratch, and it's all OK, it's not difficult.
But I am developing a server that can accept multiple connections, and the socket-based functions are blocking-functions. For example, there is a function to receive a buffer, if I use it, the whola program will freeze and will continue only when someone send something! To avoid this, on PC, I use threads.
I've searched the forums and found that I can use cooperative multitasking on the PS2, but didn't find much info at all.
Can someone help me with this?
ps.: sorry for the bad english
I am doing a program for PC that can send files and messages to a server, and its port for the PS2. On PC, I am using the Visual Studio Windows Forms applications for the GUI, and on he PS2, I am developing my own GUI from the scratch, and it's all OK, it's not difficult.
But I am developing a server that can accept multiple connections, and the socket-based functions are blocking-functions. For example, there is a function to receive a buffer, if I use it, the whola program will freeze and will continue only when someone send something! To avoid this, on PC, I use threads.
I've searched the forums and found that I can use cooperative multitasking on the PS2, but didn't find much info at all.
Can someone help me with this?
ps.: sorry for the bad english