Multithreading or Asynchronous for Python GTK/Socket Server/Data Writing -


i'm new python, socket, multithreading , asynchronous programming. i'm wondering best approach implement server receives , sends data between client such unity3d game , plot out these data in gui using python gtk while writing these data text file in real time. make things bit more complicated, data comes eyetracker receives gaze data @ speed of 300 ms. given these requirements, better use threads or async? moreover, should creating udp or tcp server exchange data?

if more information needed, please let me know. thanks.

use tcp. udp used things video/audio streaming. that's not case here.

as async vs thread in unity, suggest go thread. easier , guaranteed network code not slowing unity down in way.

unity3d game , plot out these data in gui using python gtk

if receiving data eye tracker, should able plot data unity. if requirement use python still possible make server/cleint connection between unity , python app.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -