Vision 送信を Broadcast 対応(SO_BROADCAST 有効化) - #4
Open
Yuzz1e wants to merge 1 commit into
Open
Conversation
Vision 送信ソケットに SO_BROADCAST を有効化し、送信先アドレスを broadcast アドレス(255.255.255.255 やサブネット指向 broadcast)に 設定した場合に Broadcast 送信できるようにする。multicast/unicast 宛先には無害なため常時有効。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Vision 送信ソケットに
SO_BROADCASTを有効化し、Broadcast 送信できるようにする。背景
ssl-RAVEN 側で Vision/Referee を Multicast/Broadcast 両対応で受信できるようにする対応(Rione/ssl-RAVEN#730)に合わせ、送信側でも Broadcast 送信を可能にする。Multicast が届きにくい NW(WiFi・一部スイッチ・VM/コンテナ等)で有用。
変更内容
Senderコンストラクタでsocket_.set_option(boost::asio::socket_base::broadcast(true))を有効化。observerの visionMulticastAddress / Setting.qml)を使用。Broadcast したい場合はユーザーが255.255.255.255またはサブネット指向 broadcast(例192.168.x.255)を設定する。テスト
cmake --buildで sender.cpp 再コンパイル・リンク成功)。