25 lines
664 B
Python
25 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)
|