Add public prop for setting IP+port simultaneously
This commit is contained in:
parent
6acf4ae6fb
commit
b7eb90f990
|
@ -37,6 +37,16 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public (string HostIP, int Port) TargetAddress
|
||||||
|
{
|
||||||
|
get => _targetAddr;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_targetAddr = value;
|
||||||
|
Connect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
private const int Retries = 10;
|
private const int Retries = 10;
|
||||||
#else
|
#else
|
||||||
|
@ -48,8 +58,7 @@ namespace BizHawk.Client.Common
|
||||||
public SocketServer(Func<byte[]> takeScreenshotCallback, string ip, int port)
|
public SocketServer(Func<byte[]> takeScreenshotCallback, string ip, int port)
|
||||||
{
|
{
|
||||||
_takeScreenshotCallback = takeScreenshotCallback;
|
_takeScreenshotCallback = takeScreenshotCallback;
|
||||||
_targetAddr = (ip, port);
|
TargetAddress = (ip, port);
|
||||||
Connect();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Connect()
|
private void Connect()
|
||||||
|
|
Loading…
Reference in New Issue