@@ -62,7 +62,7 @@ public OSCReceiver SourceReceiver
6262
6363 public string LocalHost
6464 {
65- get => RequestLocalHost ( ) ;
65+ get => GetLocalHost ( ) ;
6666 set
6767 {
6868 if ( _localHost == value )
@@ -76,7 +76,7 @@ public string LocalHost
7676
7777 public int LocalPort
7878 {
79- get => RequestLocalPort ( ) ;
79+ get => GetLocalPort ( ) ;
8080 set
8181 {
8282 if ( _localPort == value )
@@ -217,7 +217,7 @@ protected void OnValidate()
217217
218218 public override void Connect ( )
219219 {
220- _transmitterBackend . Connect ( RequestLocalHost ( ) , RequestLocalPort ( ) ) ;
220+ _transmitterBackend . Connect ( GetLocalHost ( ) , GetLocalPort ( ) ) ;
221221 _transmitterBackend . RefreshRemote ( _remoteHost , _remotePort ) ;
222222 }
223223
@@ -229,7 +229,7 @@ public override void Close()
229229
230230 public override string ToString ( )
231231 {
232- return $ "<{ GetType ( ) . Name } (LocalHost: { _localHost } LocalPort: { _localPort } | RemoteHost: { _remoteHost } , RemotePort: { _remotePort } )>";
232+ return $ "<{ nameof ( OSCTransmitter ) } (LocalHost: { _localHost } LocalPort: { _localPort } | RemoteHost: { _remoteHost } , RemotePort: { _remotePort } )>";
233233 }
234234
235235 public void Send ( IOSCPacket packet , OSCSendOptions options = OSCSendOptions . None )
@@ -278,7 +278,7 @@ private void RemoteRefresh()
278278 _transmitterBackend . RefreshRemote ( _remoteHost , _remotePort ) ;
279279 }
280280
281- private string RequestLocalHost ( )
281+ private string GetLocalHost ( )
282282 {
283283 if ( _localReceiver != null )
284284 return _localReceiver . LocalHost ;
@@ -289,7 +289,7 @@ private string RequestLocalHost()
289289 return _localHost ;
290290 }
291291
292- private int RequestLocalPort ( )
292+ private int GetLocalPort ( )
293293 {
294294 if ( _localReceiver != null )
295295 return _localReceiver . LocalPort ;
0 commit comments