Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/19/16 12:45:18 (9 years ago)
Author:
thasling
Message:

Implemented P2PTask-class
Changed communication protocoll http --> net.tcp
Logger is now Parameter of P2PTask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.Core.Host/Program.cs

    r13556 r13557  
    11using System;
     2using System.Configuration;
    23using System.Threading;
    34using DistributedGA.Core.Domain;
     
    1011      try {
    1112        Console.WriteLine("Starting peer...");
     13        string ipPrefix = ConfigurationManager.AppSettings["LanIpPrefix"];
     14        string serverUrl = ConfigurationManager.AppSettings["ContactServerURL"];
     15
     16
    1217        IMessageHandler h = new PeerNetworkMessageHandler();
    13         h.Init("","");
     18        h.Init(ipPrefix, serverUrl);
    1419        PeerInfo pi = h.GetPeerInfo();
    1520        Console.WriteLine(string.Format("Peer is hostet at IP: {0} and port: {1}", pi.IpAddress, pi.Port));
Note: See TracChangeset for help on using the changeset viewer.