Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

mcastsocket

A simple example of socket wrapper to use low-level UDP multicasting

Usage

frommcastsocketimportMulticastSocket# The 239.0.0.0/8 range is assigned for private useaddr= ('239.10.0.1', 8000)
sock=MulticastSocket(addr)
sock.sendto(addr, b'Hello')
print(sock.receive(256))

This code can work in "many-to-many" mode: each process call the bind() with the same group address. Just open two shell and experiment with this.

About

A simple example of socket wrapper to use low-level UDP multicasting

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages