Socket Factory has only one function which works for server and client code, and can do tls for both
This commit is contained in:
@ -270,7 +270,8 @@ namespace ix
|
||||
|
||||
// create socket
|
||||
std::string errorMsg;
|
||||
auto socket = createSocket(clientFd, errorMsg);
|
||||
bool tls = false;
|
||||
auto socket = createSocket(tls, clientFd, errorMsg, _socketTLSOptions);
|
||||
|
||||
if (socket == nullptr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user