mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 19:29:40 +08:00
11 lines
236 B
Python
11 lines
236 B
Python
import zmq
|
|
|
|
def main():
|
|
context = zmq.Context()
|
|
controller = context.socket(zmq.PUB)
|
|
controller.bind("tcp://127.0.0.1:10099")
|
|
while True:
|
|
controller.send("HELLO3")
|
|
|
|
if __name__ == "__main__":
|
|
main() |