mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-21 01:52:01 +03:00
28 lines
506 B
C++
28 lines
506 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) throw(XSocketAddress);
|
|
CNetworkAddress(const CString& hostname, UInt16 port) throw(XSocketAddress);
|
|
~CNetworkAddress();
|
|
|
|
// manipulators
|
|
|
|
// accessors
|
|
|
|
const struct sockaddr* getAddress() const throw();
|
|
int getAddressLength() const throw();
|
|
|
|
private:
|
|
struct sockaddr m_address;
|
|
};
|
|
|
|
#endif
|