Inital Commit

This commit is contained in:
2018-07-10 09:47:55 +02:00
commit e51933f03c
15 changed files with 1696 additions and 0 deletions

31
src/network/Address.h Normal file
View 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