00001 /* Copyright (C) GridGain Systems. All Rights Reserved. */ 00002 00003 /* _________ _____ __________________ _____ 00004 * __ ____/___________(_)______ /__ ____/______ ____(_)_______ 00005 * _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \ 00006 * / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / / 00007 * \____/ /_/ /_/ \_,__/ \____/ \__,_/ /_/ /_/ /_/ 00008 */ 00009 00010 #ifndef GRID_SOCKET_ADDRESS_HPP_INCLUDED 00011 #define GRID_SOCKET_ADDRESS_HPP_INCLUDED 00012 00013 #include <string> 00014 00018 class GridClientSocketAddress { 00019 public: 00026 GridClientSocketAddress(const std::string& host, int port) : host_(host), port_(port) {} 00027 00033 GridClientSocketAddress(const GridClientSocketAddress& peer) : host_(peer.host_), port_(peer.port_) {} 00034 00040 std::string host() const { return host_; } 00041 00047 int port() const { return port_; } 00048 00049 private: 00051 std::string host_; 00052 00054 int port_; 00055 }; 00056 00057 #endif
1.7.1