File tree 1 file changed +29
-2
lines changed
1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,43 @@ public class OSCBundle : IOSCPacket
20
20
21
21
public string Address => "#bundle" ;
22
22
23
- public IPAddress Ip { get ; set ; }
23
+ public IPAddress Ip
24
+ {
25
+ get => _ip ;
26
+ set
27
+ {
28
+ _ip = value ;
29
+
30
+ for ( var i = 0 ; i < Packets . Count ; i ++ )
31
+ Packets [ i ] . Ip = value ;
32
+ }
33
+ }
34
+
35
+ public int Port
36
+ {
37
+ get => _port ;
38
+ set
39
+ {
40
+ _port = value ;
24
41
25
- public int Port { get ; set ; }
42
+ for ( var i = 0 ; i < Packets . Count ; i ++ )
43
+ Packets [ i ] . Port = value ;
44
+ }
45
+ }
26
46
27
47
public List < IOSCPacket > Packets { get ; } = new List < IOSCPacket > ( ) ;
28
48
29
49
public long TimeStamp { get ; set ; }
30
50
31
51
#endregion
32
52
53
+ #region Private Vars
54
+
55
+ private IPAddress _ip ;
56
+ private int _port ;
57
+
58
+ #endregion
59
+
33
60
#region Public Methods
34
61
35
62
public OSCBundle ( )
You can’t perform that action at this time.
0 commit comments