- Timestamp:
- 06/08/16 17:02:06 (8 years ago)
- Location:
- branches/thasling/DistributedGA/DistributedGA.Core
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.Core
-
Property
svn:global-ignores
set to
obj
-
Property
svn:global-ignores
set to
-
branches/thasling/DistributedGA/DistributedGA.Core/Interface/IContactService.cs
r13524 r13887 19 19 20 20 [OperationContract] 21 void MakeLog(PeerInfo source, string msg); //used to log all peers at a single location 22 21 void UpdateHeartbeat(PeerInfo source); //Sends heartbeat to contact-server 22 23 [OperationContract] 24 void MakeLog(PeerInfo source, string msg); //Used to log all peers at a single location 25 23 26 } 24 27 } -
branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageContract.cs
r13553 r13887 3 3 using DistributedGA.Core.Domain; 4 4 5 namespace DistributedGA.Core.Interface { 6 [ServiceContract] 7 public interface IMessageContract { 8 [OperationContract] 9 void SendData(PeerInfo sender, SolutionInfo[] data); 5 namespace DistributedGA.Core.Interface 6 { 10 7 11 event EventHandler<MessageRecieveEventArgs> MessageRecieved; 12 } 8 [ServiceContract] 9 public interface IMessageContract 10 { 11 12 [OperationContract] 13 void SendData(PeerInfo sender, byte[][] data); 14 15 event EventHandler<MessageRecieveEventArgs> MessageRecieved; 16 } 13 17 } -
branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageHandler.cs
r13556 r13887 2 2 using DistributedGA.Core.Domain; 3 3 4 namespace DistributedGA.Core.Interface { 5 public interface IMessageHandler { 6 void Init(string lanIpPrefix, string contactServerUrl); //Registers at contract-server 4 namespace DistributedGA.Core.Interface 5 { 7 6 8 void PublishDataToNetwork(SolutionInfo[] data); 7 public interface IMessageHandler 8 { 9 9 10 SolutionInfo[] GetDataFromNetwork();10 void Init(string lanIpPrefix, string contactServerUrl); //Registers at contract-server 11 11 12 PeerInfo GetPeerInfo();12 void PublishDataToNetwork(byte[][] data); 13 13 14 List<PeerInfo> GetCurrentNetwork();14 byte[][] GetDataFromNetwork(); 15 15 16 void Dispose(); 17 } 16 PeerInfo GetPeerInfo(); 17 18 List<PeerInfo> GetCurrentNetwork(); 19 20 void Dispose(); 21 } 18 22 } -
branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageSender.cs
r13553 r13887 1 1 using DistributedGA.Core.Domain; 2 2 3 namespace DistributedGA.Core.Interface { 4 public interface IMessageSender { 5 void Init(PeerInfo source); 3 namespace DistributedGA.Core.Interface 4 { 6 5 7 void SendData(PeerInfo destination, SolutionInfo[] data); 8 } 6 public interface IMessageSender 7 { 8 9 void Init(PeerInfo source); 10 11 void SendData(PeerInfo destination, byte[][] data); 12 } 9 13 } -
branches/thasling/DistributedGA/DistributedGA.Core/Interface/IMessageService.cs
r13553 r13887 2 2 using DistributedGA.Core.Domain; 3 3 4 namespace DistributedGA.Core.Interface { 5 public interface IMessageService { 6 /// <summary> 7 /// Initializes a WCF service and host it with another thread 8 /// </summary> 9 /// <param name="ip">current external ip address</param> 10 /// <returns>The port, on which the service was successfully hosted</returns> 11 int Init(string ip); 4 namespace DistributedGA.Core.Interface 5 { 12 6 13 void Dispose(); 7 public interface IMessageService 8 { 14 9 15 event EventHandler<MessageRecieveEventArgs> OnDataRecieved; 16 } 10 /// <summary> 11 /// Initializes a WCF service and host it with another thread 12 /// </summary> 13 /// <param name="ip">current external ip address</param> 14 /// <returns>The port, on which the service was successfully hosted</returns> 15 int Init(string ip); 16 17 void Dispose(); 18 19 event EventHandler<MessageRecieveEventArgs> OnDataRecieved; 20 } 17 21 } -
branches/thasling/DistributedGA/DistributedGA.Core/Interface/IPeerListManager.cs
r13556 r13887 2 2 using DistributedGA.Core.Domain; 3 3 4 namespace DistributedGA.Core.Interface { 5 public interface IPeerListManager { 6 void Init(PeerInfo source, string contactServerUrl); //Registers own instance at the contact-server 4 namespace DistributedGA.Core.Interface 5 { 7 6 8 List<PeerInfo> GetPeerList(); //Recieves all peers in the network from contact-server 7 public interface IPeerListManager 8 { 9 9 10 void SendLogToServer(string msg); 11 } 10 void Init(PeerInfo source, string contactServerUrl); //Registers own instance at the contact-server 11 12 List<PeerInfo> GetPeerList(); //Recieves all peers in the network from contact-server 13 14 void SendLogToServer(string msg); 15 } 12 16 }
Note: See TracChangeset
for help on using the changeset viewer.