def get_beacon():
s = _socket.socket(_socket.AF_INET, _socket.SOCK_DGRAM)<EOL>s.setsockopt(_socket.SOL_SOCKET, _socket.SO_REUSEADDR, True)<EOL>s.setsockopt(_socket.SOL_SOCKET, _socket.SO_BROADCAST, True)<EOL>return s<EOL>
Get a beacon socket