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/Implementation/WcfMessageSender.cs

    r13553 r13557  
    1919    private IMessageContract CreateServerClient(string ip, int port) {
    2020      var serviceUrl = "DistributedGA.svc";
    21       var baseUri = new Uri(string.Concat("http://", ip, ":", port, "/DistributedGA"));
     21      var baseUri = new Uri(string.Concat("net.tcp://", ip, ":", port, "/DistributedGA"));
    2222      var serviceUri = new Uri(baseUri, serviceUrl);
    2323
    24       var binding = new BasicHttpBinding();
     24      var binding = new NetTcpBinding();
    2525      var endpoint = new EndpointAddress(serviceUri);
    2626      var myChannelFactory = new ChannelFactory<IMessageContract>(binding, endpoint);
Note: See TracChangeset for help on using the changeset viewer.