#include <udp_socket.h>
|
bool | rawPoll (int timeout, bool &ready, bool &error) |
| polls socket for data or error More...
|
|
int | rawReceiveBytes (char *buffer, industrial::shared_types::shared_int num_bytes) |
|
int | rawSendBytes (char *buffer, industrial::shared_types::shared_int num_bytes) |
|
| __attribute__ ((deprecated("Please use: logSocketError(const char* msg, const int rc, const int error_no)"))) void logSocketError(const char *msg |
| Logs message to error log and reports associated socket system error. More...
|
|
int | getSockHandle () const |
|
void | logSocketError (const char *msg, const int rc, const int error_no) |
| Logs message to error log and reports associated socket system error. More...
|
|
bool | receiveBytes (industrial::byte_array::ByteArray &buffer, industrial::shared_types::shared_int num_bytes, industrial::shared_types::shared_int timeout_ms) |
| Method used by receive message interface method. This should be overridden for the specific connection type. More...
|
|
bool | sendBytes (industrial::byte_array::ByteArray &buffer) |
| Method used by send message interface method. This should be overridden for the specific connection type. More...
|
|
virtual void | setConnected (bool connected) |
|
void | setSockHandle (int sock_handle_) |
|
Definition at line 67 of file udp_socket.h.
◆ UdpSocket()
industrial::udp_socket::UdpSocket::UdpSocket |
( |
| ) |
|
◆ ~UdpSocket()
industrial::udp_socket::UdpSocket::~UdpSocket |
( |
| ) |
|
◆ rawPoll()
bool industrial::udp_socket::UdpSocket::rawPoll |
( |
int |
timeout, |
|
|
bool & |
ready, |
|
|
bool & |
error |
|
) |
| |
|
protectedvirtual |
polls socket for data or error
- Parameters
-
timeout | (ms) negative or zero values result in blocking |
ready | true if ready |
except | true if exception |
- Returns
- true if function DID NOT timeout (must check flags)
Implements industrial::simple_socket::SimpleSocket.
Definition at line 105 of file udp_socket.cpp.
◆ rawReceiveBytes()
◆ rawSendBytes()
◆ CONNECT_HANDSHAKE
const char industrial::udp_socket::UdpSocket::CONNECT_HANDSHAKE = 142 |
|
staticprotected |
udp socket connect handshake value
Definition at line 79 of file udp_socket.h.
◆ udp_read_buffer_
char industrial::udp_socket::UdpSocket::udp_read_buffer_[MAX_BUFFER_SIZE+1] |
|
protected |
◆ udp_read_head_
char* industrial::udp_socket::UdpSocket::udp_read_head_ |
|
protected |
◆ udp_read_len_
size_t industrial::udp_socket::UdpSocket::udp_read_len_ |
|
protected |
The documentation for this class was generated from the following files: