barrier/net/CNetworkAddress.h
crs 6aba3a6f57 removed exception specifications. thread exceptions weren't
being listed and they'd have to be added to every one.  just
doesn't seem worth the trouble.
2001-10-14 16:58:01 +00:00

28 lines
446 B
C++

#ifndef CNETWORKADDRESS_H
#define CNETWORKADDRESS_H
#include "BasicTypes.h"
#include "XSocket.h"
#include <sys/socket.h>
class CString;
class CNetworkAddress {
public:
CNetworkAddress(UInt16 port);
CNetworkAddress(const CString& hostname, UInt16 port);
~CNetworkAddress();
// manipulators
// accessors
const struct sockaddr* getAddress() const;
int getAddressLength() const;
private:
struct sockaddr m_address;
};
#endif