Example #1
0
 /// <summary>Invoked to tell us we have a receiver.
 /// </summary>
 public void SetReceiver(Component newReceiver)
 {
     //_receiver = newReceiver;
     if (_receiver == null)
     {
         // called by Network.connect()
         _receiver = newReceiver;
         _traceNetwork = newReceiver._mother;
     }
     else
     {
         // always use the same lock for subnet ports
         newReceiver._lockObject = _receiver._lockObject;
         _receiver = newReceiver;
     }
 }