19 #ifndef INCLUDE_RCF_TCPENDPOINT_HPP
20 #define INCLUDE_RCF_TCPENDPOINT_HPP
25 #include <boost/shared_ptr.hpp>
27 #include <RCF/Endpoint.hpp>
28 #include <RCF/Enums.hpp>
29 #include <RCF/Export.hpp>
30 #include <RCF/IpAddress.hpp>
31 #include <RCF/SerializationProtocol.hpp>
32 #include <RCF/TypeTraits.hpp>
36 class ServerTransport;
37 class ClientTransport;
53 std::string getIp()
const;
59 std::string asString()
const;
69 std::auto_ptr<ServerTransport> createServerTransport()
const;
70 std::auto_ptr<ClientTransport> createClientTransport()
const;
71 EndpointPtr clone()
const;
77 return mIpAddress < rhs.mIpAddress;
87 TcpEndpointV4(
const std::string & ip,
int port) :
93 class TcpEndpointV6 :
public TcpEndpoint
96 TcpEndpointV6(
const std::string & ip,
int port) :
104 #endif // ! INCLUDE_RCF_TCPENDPOINT_HPP