mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-02-20 15:14:26 +01:00
27 lines
746 B
C++
27 lines
746 B
C++
|
#pragma once
|
|||
|
|
|||
|
#include <brynet/net/TcpConnection.hpp>
|
|||
|
#include <brynet/net/SSLHelper.hpp>
|
|||
|
|
|||
|
namespace brynet { namespace net { namespace detail {
|
|||
|
|
|||
|
class AddSocketOptionInfo final
|
|||
|
{
|
|||
|
public:
|
|||
|
AddSocketOptionInfo()
|
|||
|
{
|
|||
|
useSSL = false;
|
|||
|
forceSameThreadLoop = false;
|
|||
|
maxRecvBufferSize = 128;
|
|||
|
}
|
|||
|
|
|||
|
std::vector<TcpConnection::EnterCallback> enterCallback;
|
|||
|
SSLHelper::Ptr sslHelper;
|
|||
|
bool useSSL;
|
|||
|
bool forceSameThreadLoop;
|
|||
|
size_t maxRecvBufferSize;
|
|||
|
};
|
|||
|
|
|||
|
using AddSocketOptionFunc = std::function<void(AddSocketOptionInfo& option)>;
|
|||
|
|
|||
|
} } }
|