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