Free cookie consent management tool by TermsFeed Policy Generator

source: branches/thasling/DistributedGA/DistributedGA.Core/Implementation/TestPeerListManager.cs @ 13556

Last change on this file since 13556 was 13556, checked in by thasling, 8 years ago

new hive project

File size: 871 bytes
Line 
1using System.Collections.Generic;
2using DistributedGA.Core.Domain;
3using DistributedGA.Core.Interface;
4
5namespace DistributedGA.Core.Implementation {
6  public class TestPeerListManager : IPeerListManager {
7
8
9    public List<PeerInfo> GetPeerList() {
10      PeerInfo pi1 = new PeerInfo() { IpAddress = "localhost", Port = 3030 };
11      PeerInfo pi2 = new PeerInfo() { IpAddress = "localhost", Port = 3031 };
12      PeerInfo pi3 = new PeerInfo() { IpAddress = "localhost", Port = 3032 };
13      PeerInfo pi4 = new PeerInfo() { IpAddress = "localhost", Port = 3033 };
14      PeerInfo pi5 = new PeerInfo() { IpAddress = "localhost", Port = 3034 };
15      return new List<PeerInfo>() { pi1, pi2, pi3, pi4, pi5 };
16    }
17
18    public void SendLogToServer(string msg) {
19
20    }
21
22    public void Init(PeerInfo source, string contactServerUrl) {
23
24    }
25  }
26}
Note: See TracBrowser for help on using the repository browser.