SocketParameter.hpp 883 B

1234567891011121314151617181920212223242526272829303132
  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-16
  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/core/interface/IPosixSocket.hpp>
  13. #include <ls_std/core/interface/IPosixReader.hpp>
  14. #include "SocketAddress.hpp"
  15. #include <memory>
  16. namespace ls::std::network
  17. {
  18. struct SocketParameter
  19. {
  20. ::std::shared_ptr<ls::std::core::interface_type::IPosixReader> posixReader{};
  21. ::std::shared_ptr<ls::std::core::interface_type::IPosixSocket> posixSocket{};
  22. ls::std::network::ProtocolFamilyType protocolFamilyType{};
  23. int queueSize{};
  24. size_t readBufferSize{};
  25. ls::std::network::SocketAddress socketAddress{};
  26. };
  27. }
  28. #endif