Free cookie consent management tool by TermsFeed Policy Generator

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

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

Location:
branches/thasling/DistributedGA/DistributedGA.ContactServer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.ContactServer/App.config

    r13524 r13557  
    1515        <binding name="LargeObjects" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" />
    1616      </basicHttpBinding>
     17      <netTcpBinding>
     18        <binding name="LargeObjects" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" />
     19      </netTcpBinding>
    1720    </bindings>
    1821    <services>
    1922      <service name="DistributedGA.ContactServer.ContactServiceImpl">
    20         <endpoint bindingConfiguration="LargeObjects" address="ContactService" binding="basicHttpBinding" contract="DistributedGA.ContactServer.IContactService"/>
     23        <endpoint bindingConfiguration="LargeObjects" address="ContactService" binding="netTcpBinding" contract="DistributedGA.ContactServer.IContactService"/>
    2124        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    2225        <host>
    2326          <baseAddresses>
    24             <add baseAddress="http://localhost:9090/DistributedGA.ContactServer" />
     27            <add baseAddress="net.tcp://localhost:9090/DistributedGA.ContactServer" />
    2528          </baseAddresses>
    2629        </host>
  • branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs

    r13555 r13557  
    6464
    6565    private void UpdateHeartbeat(PeerInfo source) {
     66      Console.WriteLine("hb from {0}:{1}", source.IpAddress, source.Port);
    6667      DateTime now = DateTime.Now;
    6768      allPeers.AddOrUpdate(source, now, (k, v) => v = now);
Note: See TracChangeset for help on using the changeset viewer.