|
Boost : |
From: Iain.Hanson_at_[hidden]
Date: 2002-02-27 13:47:24
The following is the interface for a unicast address in psudo code.
I'm not that enamoured by the names of the mutator and accessor
methods so if anyone has better suggestions they would be welcome. I'd
appreciate comments, is this interface complete ? is it too fat? etc.
class address
{
public:
// none of the following ctors need marshalling address ( );
// sockaddr_in or in6
address ( protocol_address_representation & Address );
address ( address & Rhs );
address & operator= ( address & Rhs );
// the following two need marshalling
address ( const char * Address , port_type Port = any_port );
explicit address ( const std::string & Address ,
port_type Port = any_port );
// mutators
reset ( const char * Address , port_type Port );
reset_address ( const char * Address );
reset_port ( port_type Port );
// accessors
const char * c_str ( ) const;
const port_type port ( )
};
plus ostream and istream operators
/ikh
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk