Exemplo n.º 1
0
 /// <summary>
 /// Sets to null the hello network module instance and relesase resources, so that
 /// we can execute again its construction from the scratch.
 /// </summary>
 public void Reset()
 {
     closeSockets();     // close the sockets
     instance = null;    // sets to null the instance
 }
Exemplo n.º 2
0
 /// <summary>
 ///  Constructor.
 ///  Retrieves the HelloNetworkModuleInstance
 /// </summary>
 public HelloThread()
 {
     // Creates or retrieves a network module to use to communicate on the network
     network = HelloNetworkModule.Instance;
 }
Exemplo n.º 3
0
 public HelloSenderThread(HelloNetworkModule network)
 {
     Settings.Instance.PropertyChanged += Instance_PropertyChanged;
     this.network = network;
 }