Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4148

Grashopper Python TCP Socket Communication Freezing/Not Responding / Delayed

$
0
0

@avishek wrote:

server_TCP.py (1023 Bytes) GHPython_Socket_TCP_Client.gh (2.7 KB)

Hi all,

This is a small trouble I am having when I am trying to communicate with a python script and a GHPython script using TCP Socket communication. the respose gets freezed, delayed or not responsive after 2-3 iterations.(attached screenshot) Somehow the server won’t send the data back and the client wont finish communication with the server. But when I run the same script through 2 terminal windows they communicate perfecty.
But when i try the same with UDP it works perfectly. Previously we have used TCP Socket communication to read data from a UR10 and it worked perfectly. I have attached the files here.

Can anyone tell me what could be the issue here?

P.S. I have also found a paper where it suggests that GH does not support socket programming over TCP protocol.
Link to the paper.

Thank you

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4148

Trending Articles