Skip to content

File socket_utils.hpp

FileList > connections > socket_utils.hpp

Go to the source code of this file

  • #include <nebula_core_common/util/errno.hpp>
  • #include <nebula_core_common/util/expected.hpp>
  • #include <arpa/inet.h>
  • #include <sys/poll.h>
  • #include <sys/socket.h>
  • #include <unistd.h>
  • #include <array>
  • #include <cstdint>
  • #include <exception>
  • #include <stdexcept>
  • #include <string>
  • #include <string_view>
  • #include <variant>

Namespaces

Type Name
namespace nebula
namespace drivers
namespace connections

Classes

Type Name
struct Endpoint
Represents an IP (v4) and port endpoint.
class SockFd
RAII wrapper for a file descriptor, ensuring it is closed when destroyed. Non-copyable, move-only.
class SocketError
Exception thrown when a socket operation fails (usually check errno).
class UsageError
Exception thrown when the API is used incorrectly.

The documentation for this class was generated from the following file src/nebula_core/nebula_core_hw_interfaces/include/nebula_core_hw_interfaces/nebula_hw_interfaces_common/connections/socket_utils.hpp