SocketParameter.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2022-11-16
  6. * Changed: 2022-12-25
  7. *
  8. * */
  9. #ifndef LS_STD_SOCKET_PARAMETER_HPP
  10. #define LS_STD_SOCKET_PARAMETER_HPP
  11. #include <ls_std/network/core/ProtocolFamilyType.hpp>
  12. #include <ls_std/common/interface/IPosixSocket.hpp>
  13. #include <ls_std/common/interface/IPosixReader.hpp>
  14. #include <ls_std/common/interface/IPosixWriter.hpp>
  15. #include "SocketAddress.hpp"
  16. #include <memory>
  17. namespace ls::std::network
  18. {
  19. struct SocketParameter
  20. {
  21. ::std::shared_ptr<ls::std::common::interface_type::IPosixReader> posixReader{};
  22. ::std::shared_ptr<ls::std::common::interface_type::IPosixSocket> posixSocket{};
  23. ::std::shared_ptr<ls::std::common::interface_type::IPosixWriter> posixWriter{};
  24. ls::std::network::ProtocolFamilyType protocolFamilyType{};
  25. int queueSize{};
  26. size_t readBufferSize{};
  27. ls::std::network::SocketAddress socketAddress{};
  28. };
  29. }
  30. #endif