//***************************************************************************** // RCF - Remote Call Framework // Copyright (c) 2005, Jarl Lindrud. // Contact: jlindrud@hotmail.com . // // Distributed under the so-called MIT license, see accompanying file license.txt. //***************************************************************************** #ifndef _RCF_CLIENTINFO_HPP_ #define _RCF_CLIENTINFO_HPP_ #include <string> //struct sockaddr_in; #include <RCF/util/Platform/Platform.hpp> // need sockets namespace RCF { class ClientInfo { public: ClientInfo(); ClientInfo(const sockaddr_in &addr); std::string getAddress() const; sockaddr_in getSockAddr() const; private: std::string ip; sockaddr_in addr; }; } // namespace RCF #endif // ! _RCF_CLIENTINFO_HPP_
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
Skills that self-taught computer programmers lack