Public Member Functions | Private Attributes
eip::socket::UDPSocket Class Reference

#include <udp_socket.h>

Inheritance diagram for eip::socket::UDPSocket:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void close ()
virtual void open (string hostname, string port)
virtual size_t receive (mutable_buffer buf)
virtual size_t send (const_buffer buf)
 UDPSocket (io_service &io_serv, unsigned short local_port, std::string local_ip="0.0.0.0")

Private Attributes

udp::endpoint local_endpoint_
udp::endpoint remote_endpoint_
udp::socket socket_

Detailed Description

TCP Implementation of the Socket interface

Definition at line 45 of file udp_socket.h.


Constructor & Destructor Documentation

eip::socket::UDPSocket::UDPSocket ( io_service &  io_serv,
unsigned short  local_port,
std::string  local_ip = "0.0.0.0" 
) [inline]

Definition at line 49 of file udp_socket.h.


Member Function Documentation

virtual void eip::socket::UDPSocket::close ( ) [inline, virtual]

Close the socket

Implements eip::socket::Socket.

Definition at line 69 of file udp_socket.h.

virtual void eip::socket::UDPSocket::open ( string  hostname,
string  port 
) [inline, virtual]

Open the socket to connect to the given hostname and port

Parameters:
hostnameHostname to connect to
portName or number of port to connect to

Implements eip::socket::Socket.

Definition at line 57 of file udp_socket.h.

virtual size_t eip::socket::UDPSocket::receive ( mutable_buffer  buf) [inline, virtual]

Receive bytes from the socket

Parameters:
bufBuffer into which to store received data
Returns:
number of bytes read

Implements eip::socket::Socket.

Definition at line 89 of file udp_socket.h.

virtual size_t eip::socket::UDPSocket::send ( const_buffer  buf) [inline, virtual]

Send the contents of the buffer out the socket

Parameters:
bufData to send out the socket
Returns:
number of bytes written

Implements eip::socket::Socket.

Definition at line 79 of file udp_socket.h.


Member Data Documentation

udp::endpoint eip::socket::UDPSocket::local_endpoint_ [private]

Definition at line 98 of file udp_socket.h.

Definition at line 99 of file udp_socket.h.

udp::socket eip::socket::UDPSocket::socket_ [private]

Definition at line 97 of file udp_socket.h.


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


odva_ethernetip
Author(s): Kareem Shehata
autogenerated on Sat Jun 8 2019 20:21:23