Public Member Functions | Protected Attributes | List of all members
sick_scansegment_xd::UdpSenderSocketImpl Class Reference

class UdpSenderSocketImpl implements the udp socket for sending udp packages More...

#include <udp_sockets.h>

Public Member Functions

bool IsOpen (void) const
 
bool Send (std::vector< uint8_t > &message)
 
 UdpSenderSocketImpl (const std::string &server_address="192.168.0.1", int udp_port=2115)
 
 ~UdpSenderSocketImpl ()
 

Protected Attributes

std::string m_server_address
 
bool m_socket_opened
 
int m_udp_port
 
SOCKET m_udp_socket
 

Detailed Description

class UdpSenderSocketImpl implements the udp socket for sending udp packages

Definition at line 272 of file udp_sockets.h.

Constructor & Destructor Documentation

◆ UdpSenderSocketImpl()

sick_scansegment_xd::UdpSenderSocketImpl::UdpSenderSocketImpl ( const std::string &  server_address = "192.168.0.1",
int  udp_port = 2115 
)
inline

Constructor, opens an udp socket.

Parameters
[in]server_addressip address
[in]udp_portudp port

Definition at line 281 of file udp_sockets.h.

◆ ~UdpSenderSocketImpl()

sick_scansegment_xd::UdpSenderSocketImpl::~UdpSenderSocketImpl ( )
inline

Destructor, closes the socket

Definition at line 316 of file udp_sockets.h.

Member Function Documentation

◆ IsOpen()

bool sick_scansegment_xd::UdpSenderSocketImpl::IsOpen ( void  ) const
inline

Returns true if the udp socket is opened and ready to send, or false otherwise.

Definition at line 336 of file udp_sockets.h.

◆ Send()

bool sick_scansegment_xd::UdpSenderSocketImpl::Send ( std::vector< uint8_t > &  message)
inline

Sends a binary message.

Definition at line 341 of file udp_sockets.h.

Member Data Documentation

◆ m_server_address

std::string sick_scansegment_xd::UdpSenderSocketImpl::m_server_address
protected

Definition at line 393 of file udp_sockets.h.

◆ m_socket_opened

bool sick_scansegment_xd::UdpSenderSocketImpl::m_socket_opened
protected

Definition at line 392 of file udp_sockets.h.

◆ m_udp_port

int sick_scansegment_xd::UdpSenderSocketImpl::m_udp_port
protected

Definition at line 394 of file udp_sockets.h.

◆ m_udp_socket

SOCKET sick_scansegment_xd::UdpSenderSocketImpl::m_udp_socket
protected

Definition at line 395 of file udp_sockets.h.


The documentation for this class was generated from the following file:


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:21