Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 | using DistributedGA.Core.Domain;
|
---|
3 | using DistributedGA.Core.Interface;
|
---|
4 |
|
---|
5 | namespace 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.