Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Python Socket vs. TCP/IP DAT

General discussion about anything TouchDesigner

Python Socket vs. TCP/IP DAT

Postby CorbinWhite » Tue Aug 13, 2019 1:31 pm

I'm working on a project that sends text strings over a TCP/IP connection to a mixer to control it. The manufacturer released a small set of Python scripts that use the socket module to establish a connection and then send a utf-8 encoded message with the sendall() method. I've been working off of this template within TD to create an interface, but now I'm wondering if it would just be faster/easier to use the TCP/IP DAT. Is there really any difference between socket.sendall('string') and tcpipdat.send('string') ??
CorbinWhite
 
Posts: 128
Joined: Sun Aug 16, 2015 2:49 pm

Re: Python Socket vs. TCP/IP DAT

Postby malcolm » Tue Aug 13, 2019 9:22 pm

It just depends if you want to use our socket setup code, or theirs. Functionally the sending will be the same, unless you use specific socket options that you need.
User avatar
malcolm
Staff
 
Posts: 4425
Joined: Tue Nov 13, 2007 1:11 am


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: Google [Bot] and 23 guests