TLS work. Not done.
This commit is contained in:
1 parent
e6c1e9db0d
commit
43a24b900a
11 files changed
+92
-93
No files matched your search
+1
-5
@@ -7,7 +7,6 @@ namespace core {
|
||||
|
||||
Socket::Socket(EPoll &ePoll) : ePoll(ePoll) {
|
||||
coreutils::Log(coreutils::LOG_DEBUG_2) << "BMASocket object created.";
|
||||
coreutils::Log(coreutils::LOG_DEBUG_3) << "Buffer size set to default (4096).";
|
||||
buffer = (char *)malloc(4096);
|
||||
length = 4096;
|
||||
}
|
||||
@@ -23,15 +22,12 @@ namespace core {
|
||||
if(descriptor < 3)
|
||||
throw coreutils::Exception("Descriptor out of range", __FILE__, __LINE__);
|
||||
this->descriptor = descriptor;
|
||||
onTLSInit();
|
||||
}
|
||||
|
||||
int Socket::getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
void Socket::onTLSInit() {}
|
||||
|
||||
void Socket::setBufferSize(int length) {
|
||||
buffer = (char *)realloc(buffer, length);
|
||||
this->length = length;
|
||||
@@ -42,7 +38,7 @@ namespace core {
|
||||
}
|
||||
|
||||
void Socket::onUnregistered() {
|
||||
// onDisconnected();
|
||||
|
||||
}
|
||||
|
||||
void Socket::eventReceived(struct epoll_event event) {
|
||||
|
||||
Reference in new issue
Block a user