Rework for TLS.
This commit is contained in:
1 parent
519faa535b
commit
b7deabc5dc
2830 files changed
+4559
-80373
No files matched your search
+10
-9
@@ -1,27 +1,28 @@
|
||||
#ifndef __IPAddress_h__
|
||||
#define __IPAddress_h__
|
||||
|
||||
#include "includes"
|
||||
#include "Object.h"
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <string>
|
||||
|
||||
namespace core {
|
||||
|
||||
class IPAddress : public Object {
|
||||
class IPAddress {
|
||||
|
||||
public:
|
||||
IPAddress();
|
||||
IPAddress(std::string address);
|
||||
IPAddress(std::string address, int port);
|
||||
IPAddress(std::string address);
|
||||
IPAddress(std::string address, int port);
|
||||
~IPAddress();
|
||||
|
||||
|
||||
struct sockaddr_in addr;
|
||||
socklen_t addressLength;
|
||||
|
||||
struct sockaddr * getPointer();
|
||||
|
||||
struct sockaddr * getPointer();
|
||||
std::string getClientAddress(); ///<Get the client network address as xxx.xxx.xxx.xxx.
|
||||
std::string getClientAddressAndPort(); ///<Get the client network address and port as xxx.xxx.xxx.xxx:ppppp.
|
||||
int getClientPort(); ///<Get the client network port number.
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user