Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServerListLogic, Only send beaconlib probes during LAN games. #21417

Open
anvilvapre opened this issue May 4, 2024 · 1 comment
Open

ServerListLogic, Only send beaconlib probes during LAN games. #21417

anvilvapre opened this issue May 4, 2024 · 1 comment

Comments

@anvilvapre
Copy link
Contributor

Request to only run a BeaconLib probe when the use chooses to start or join a LAN game. Not by default when joining an online Internet game.

lanGameLocations = new List<BeaconLocation>();
try
{
lanGameProbe = new Probe("OpenRALANGame");
lanGameProbe.BeaconsUpdated += locations => lanGameLocations = locations;
lanGameProbe.Start();
}
catch (Exception ex)
{
Log.Write("debug", "BeaconLib.Probe: " + ex.Message);
}

Results in the following journal entries. Messages seem to be repeated each 2 seconds.

OpenRA[24061]: System.Net.Sockets.SocketException (13): Permission denied
                                      at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketE
rror error, String callerName)
                                      at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, Socke
tFlags socketFlags, EndPoint remoteEP)
                                      at System.Net.Sockets.UdpClient.Send(Byte[] dgram, Int32 bytes, IPEndPoint endPoin
t)
                                      at BeaconLib.Probe.BroadcastProbe()
                                      at BeaconLib.Probe.BackgroundLoop()

Goal: do not run unneeded additional network services, do not generate any unnessecary network traffic.

People who play at work will be thankfull ; )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants