#include <udp_socket.h>

Public Member Functions | |
| UdpSocket () | |
| ~UdpSocket () | |
Protected Member Functions | |
| bool | rawPoll (int timeout, bool &ready, bool &error) |
| polls socket for data or error | |
| int | rawReceiveBytes (char *buffer, industrial::shared_types::shared_int num_bytes) |
| int | rawSendBytes (char *buffer, industrial::shared_types::shared_int num_bytes) |
Protected Attributes | |
| char | udp_read_buffer_ [MAX_BUFFER_SIZE+1] |
| char * | udp_read_head_ |
| size_t | udp_read_len_ |
Static Protected Attributes | |
| static const char | CONNECT_HANDSHAKE = 142 |
| udp socket connect handshake value | |
Definition at line 61 of file udp_socket.h.
Definition at line 53 of file udp_socket.cpp.
Definition at line 61 of file udp_socket.cpp.
| bool industrial::udp_socket::UdpSocket::rawPoll | ( | int | timeout, |
| bool & | ready, | ||
| bool & | error | ||
| ) | [protected, virtual] |
polls socket for data or error
| timeout | (ms) negative or zero values result in blocking |
| ready | true if ready |
| except | true if exception |
Implements industrial::simple_socket::SimpleSocket.
Definition at line 105 of file udp_socket.cpp.
| int industrial::udp_socket::UdpSocket::rawReceiveBytes | ( | char * | buffer, |
| industrial::shared_types::shared_int | num_bytes | ||
| ) | [protected, virtual] |
Implements industrial::simple_socket::SimpleSocket.
Definition at line 79 of file udp_socket.cpp.
| int industrial::udp_socket::UdpSocket::rawSendBytes | ( | char * | buffer, |
| industrial::shared_types::shared_int | num_bytes | ||
| ) | [protected, virtual] |
Implements industrial::simple_socket::SimpleSocket.
Definition at line 68 of file udp_socket.cpp.
const char industrial::udp_socket::UdpSocket::CONNECT_HANDSHAKE = 142 [static, protected] |
udp socket connect handshake value
Definition at line 73 of file udp_socket.h.
char industrial::udp_socket::UdpSocket::udp_read_buffer_[MAX_BUFFER_SIZE+1] [protected] |
Definition at line 75 of file udp_socket.h.
char* industrial::udp_socket::UdpSocket::udp_read_head_ [protected] |
Definition at line 76 of file udp_socket.h.
size_t industrial::udp_socket::UdpSocket::udp_read_len_ [protected] |
Definition at line 77 of file udp_socket.h.