Mercurial > archived > louis > epitech > zia-api
view include/network/IEndPoint.hpp @ 41:7c8cd74023ce
Rework file layout, fix build, add README and SUPPORT
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Mon, 22 Mar 2010 02:08:24 +0100 |
parents | src/include/network/IEndPoint.hpp@4588540b0cf3 |
children | 86584ae719fc |
line wrap: on
line source
#ifndef __ZIA_API_IENDPOINT_HPP_ # define __ZIA_API_IENDPOINT_HPP_ namespace zia { namespace api { namespace network { /** * @brief Represent a connection point. * */ class IEndPoint { public: typedef int Ip; typedef unsigned short Port; typedef int Socket; typedef std::string IAddress; virtual ~IEndPoint(void){} /** * @brief Get on wich port socket is connected. * * @return The port number. */ virtual Port getPort(void) const = 0; virtual const Ip & getIp(void) const = 0; /** * @brief Get the socket associated with the endpoint. * * @return The socket. */ virtual Socket getSocket(void) const = 0; }; }; }; }; #endif /* ! __ZIA_API_IENDPOINT_HPP_ */