Rev | Line | |
---|
[13556] | 1 | using System.Collections.Generic;
|
---|
| 2 | using DistributedGA.Core.Domain;
|
---|
[13524] | 3 | using DistributedGA.Core.Interface;
|
---|
| 4 |
|
---|
[13887] | 5 | namespace DistributedGA.Core.Implementation
|
---|
| 6 | {
|
---|
| 7 | public class TestPeerListManager : IPeerListManager
|
---|
| 8 | {
|
---|
[13524] | 9 |
|
---|
| 10 |
|
---|
[13887] | 11 | public List<PeerInfo> GetPeerList()
|
---|
| 12 | {
|
---|
| 13 | PeerInfo pi1 = new PeerInfo() { IpAddress = "localhost", Port = 3030 };
|
---|
| 14 | PeerInfo pi2 = new PeerInfo() { IpAddress = "localhost", Port = 3031 };
|
---|
| 15 | PeerInfo pi3 = new PeerInfo() { IpAddress = "localhost", Port = 3032 };
|
---|
| 16 | PeerInfo pi4 = new PeerInfo() { IpAddress = "localhost", Port = 3033 };
|
---|
| 17 | PeerInfo pi5 = new PeerInfo() { IpAddress = "localhost", Port = 3034 };
|
---|
| 18 | return new List<PeerInfo>() { pi1, pi2, pi3, pi4, pi5 };
|
---|
| 19 | }
|
---|
[13524] | 20 |
|
---|
[13887] | 21 | public void SendLogToServer(string msg)
|
---|
| 22 | {
|
---|
[13524] | 23 |
|
---|
[13887] | 24 | }
|
---|
[13556] | 25 |
|
---|
[13887] | 26 | public void Init(PeerInfo source, string contactServerUrl)
|
---|
| 27 | {
|
---|
[13556] | 28 |
|
---|
[13887] | 29 | }
|
---|
[13918] | 30 |
|
---|
| 31 |
|
---|
| 32 | public void Dispose()
|
---|
| 33 | {
|
---|
| 34 |
|
---|
| 35 | }
|
---|
[13956] | 36 |
|
---|
| 37 | #region IPeerListManager Members
|
---|
| 38 |
|
---|
| 39 | public void Init(PeerInfo source, string contactServerUrl, int communicationRate) {
|
---|
| 40 | throw new System.NotImplementedException();
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | #endregion
|
---|
[13965] | 44 |
|
---|
| 45 | #region IPeerListManager Members
|
---|
| 46 |
|
---|
| 47 | public void Init(PeerInfo source, string contactServerUrl, double communicationRate) {
|
---|
| 48 | throw new System.NotImplementedException();
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | #endregion
|
---|
[13556] | 52 | }
|
---|
[13524] | 53 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.