Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
industrial::udp_socket::UdpSocket Class Reference

#include <udp_socket.h>

Inheritance diagram for industrial::udp_socket::UdpSocket:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 61 of file udp_socket.h.


Constructor & Destructor Documentation

Definition at line 53 of file udp_socket.cpp.

Definition at line 61 of file udp_socket.cpp.


Member Function Documentation

bool industrial::udp_socket::UdpSocket::rawPoll ( int  timeout,
bool &  ready,
bool &  error 
) [protected, virtual]

polls socket for data or error

Parameters:
timeout(ms) negative or zero values result in blocking
readytrue if ready
excepttrue 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.

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.


Member Data Documentation

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.

Definition at line 75 of file udp_socket.h.

Definition at line 76 of file udp_socket.h.

Definition at line 77 of file udp_socket.h.


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


simple_message
Author(s): Shaun Edwards
autogenerated on Sat Jun 8 2019 20:43:24