RosettaCodeData/Task/Distributed-programming/Python/distributed-programming-10.py

13 lines
226 B
Python
Raw Normal View History

2023-07-01 11:58:00 -04:00
#!/usr/bin/python
# -*- coding: utf-8 -*-
import spread
PORT = '4803'
conn = spread.connect(PORT)
conn.join('test')
conn.multicast(spread.RELIABLE_MESS, 'test', 'hello, this is message sent from python')
conn.disconnect()