Explorar el Código

Rename private Socket class method

Patrick-Christopher Mattulat hace 1 año
padre
commit
c5273cf255

+ 1 - 1
include/ls_std/network/socket/Socket.hpp

@@ -67,7 +67,7 @@ namespace ls::std::network
       #if defined(unix) || defined(__APPLE__)
       ls::std::core::type::byte_field _readUnix();
       void _setPosixReaderApi();
-      void _setUnixSocketApi();
+      void _setPosixSocketApi();
       #endif
   };
 }

+ 2 - 2
source/ls_std/network/socket/Socket.cpp

@@ -150,7 +150,7 @@ void ls::std::network::Socket::_initReadBuffer()
 bool ls::std::network::Socket::_initUnix()
 {
   this->_setPosixReaderApi();
-  this->_setUnixSocketApi(); // TODO: rename to _setPosixSocketApi
+  this->_setPosixSocketApi();
   ls::std::network::ConvertedProtocolFamily convertedProtocolFamily = ls::std::network::ProtocolFamilyMapper::from(this->parameter.protocolFamilyType);
   ls::std::network::Protocol protocol = ls::std::network::ProtocolMapper::from(this->parameter.socketAddress.protocolType);
 
@@ -191,7 +191,7 @@ void ls::std::network::Socket::_setPosixReaderApi()
   }
 }
 
-void ls::std::network::Socket::_setUnixSocketApi()
+void ls::std::network::Socket::_setPosixSocketApi()
 {
   if (this->parameter.posixSocket == nullptr)
   {