Changeset 11370


Ignore:
Timestamp:
07/13/11 14:50:06 (13 years ago)
Author:
tbretz
Message:
Set URL from SetEndpoint(tcp::endpoint)
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Connection.cc

    r11260 r11370  
    461461}
    462462
     463void Connection::SetEndpoint(const boost::asio::ip::tcp::endpoint &ep)
     464{
     465    SetEndpoint(ep.address().to_string(), ep.port());
     466    fEndpoint = ep;
     467}
    463468
    464469
  • trunk/FACT++/src/Connection.h

    r11260 r11370  
    105105    void SetEndpoint(const std::string &addr, const std::string &port);
    106106    void SetEndpoint(const std::string &addr);
    107     void SetEndpoint(const boost::asio::ip::tcp::endpoint &ep) { fEndpoint = ep; }
     107    void SetEndpoint(const boost::asio::ip::tcp::endpoint &ep);
    108108
    109109    void StartConnect();
Note: See TracChangeset for help on using the changeset viewer.