Included Cpp in sources
This commit is contained in:
31
src/network/Address.h
Normal file
31
src/network/Address.h
Normal file
@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Necronda Web Server 3.0
|
||||
* HttpHeader.h - HttpHeader Class definition
|
||||
* Lorenz Stechauner, 2018-05-09
|
||||
*/
|
||||
|
||||
#ifndef NECRONDA_ADDRESS
|
||||
#define NECRONDA_ADDRESS
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Address {
|
||||
private:
|
||||
unsigned int address;
|
||||
|
||||
public:
|
||||
Address();
|
||||
|
||||
explicit Address(string address);
|
||||
|
||||
explicit Address(struct sockaddr_in *address);
|
||||
|
||||
struct sockaddr_in toStruct(unsigned short port) const;
|
||||
|
||||
string toString() const;
|
||||
|
||||
bool isLocal();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user