Blender-Pipeline/network/send_messages.py
Jeison Yehuda Amihud (Blender Dumbass) 3b58c5151b Testing scripts for Rendering
In order to develop rendering you might need to read all messages it's
giving. And / Or send to it messages manually. So these are 2 very simple
terminal based scripts that will do it for you. Please read the code to
before using.
2020-12-24 06:51:30 +00:00

24 lines
664 B
Python

# GNU General Public License
# This script is for developers of VCStudio rendering. This will send any
# message you type in the terminal to 127.0.0.1 port 54545
import socket
import time
prev = ""
while True:
message = input(">>> ")
if message == "exit":
break
for i in range(500):
cs1 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
cs1.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
cs1.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
#message = "["+str(i)+"]TEST VCStudio rendering"
cs1.sendto(bytes(message, 'utf-8'), ('127.0.0.1', 54545))
#print(message)