Changeset 13956 for branches/thasling/DistributedGA/DistributedGA.Core/Implementation/PeerNetworkMessageHandler.cs
- Timestamp:
- 06/29/16 15:28:47 (8 years ago)
- Location:
- branches/thasling/DistributedGA/DistributedGA.Core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.Core
- Property svn:ignore
-
old new 1 1 bin 2 2 obj 3 DistributedGA.Core.csproj.user
-
- Property svn:ignore
-
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/PeerNetworkMessageHandler.cs
r13947 r13956 29 29 30 30 31 public void Init(string lanIpPrefix, string contactServerUrl ) {31 public void Init(string lanIpPrefix, string contactServerUrl, string problemInstance, int messageCacheCapacity, int communicationRate) { 32 32 try { 33 33 ownInstance = new PeerInfo() { 34 34 IpAddress = GetInternalIpAddress(lanIpPrefix), 35 35 Port = 0, 36 ProblemInstance = "TestProblem"36 ProblemInstance = problemInstance 37 37 }; // TODO: get own peerinfo 38 38 39 39 writeQueue = new SizedConcurrentQueue<byte[]>(); 40 40 readQueue = new SizedConcurrentQueue<byte[]>(); 41 writeQueue.Limit = 1000;41 writeQueue.Limit = messageCacheCapacity; 42 42 readQueue.Limit = writeQueue.Limit; 43 43 … … 47 47 48 48 peerListManager = new WcfPeerListManager(); 49 peerListManager.Init(ownInstance, contactServerUrl );49 peerListManager.Init(ownInstance, contactServerUrl, communicationRate); 50 50 51 51 sender = new WcfMessageSender(); 52 sender.Init(ownInstance );52 sender.Init(ownInstance, messageCacheCapacity); 53 53 54 54 } … … 141 141 } 142 142 } 143 143 144 } 144 145 }
Note: See TracChangeset
for help on using the changeset viewer.