]>
Dogcows Code - chaz/yoink/blob - src/Moof/Service.hh
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
12 #ifndef _MOOF_SERVICE_HH_
13 #define _MOOF_SERVICE_HH_
17 #include <Moof/Math.hh>
18 #include <Moof/Socket.hh>
25 * Class representing a network service.
32 * Construct a network service.
33 * \param address The address of the host.
34 * \param text The service information.
36 Service(const SocketAddress
& address
, const std::string
& text
);
40 * Get the host address.
41 * \return The address.
43 const SocketAddress
& address() const;
46 * Get the service information.
47 * \return The service information as a string.
49 const std::string
& text() const;
53 * Publish the service on the network.
57 void update(Scalar t
, Scalar dt
);
62 SocketAddress mAddress
;
71 ServiceFinder(const std::string
& service
, int type
= SOCK_STREAM
);
73 void update(Scalar t
, Scalar dt
);
76 const std::vector
<Service
>& services() const
84 std::vector
<Service
> mServices
;
90 #endif // _MOOF_SERVICE_HH_
This page took 0.03349 seconds and 5 git commands to generate.