#include <udp_socket.h>
|
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") |
|
virtual size_t | send (const Serializable &msg) |
|
virtual | ~Socket () |
|
TCP Implementation of the Socket interface
Definition at line 45 of file udp_socket.h.
eip::socket::UDPSocket::UDPSocket |
( |
io_service & |
io_serv, |
|
|
unsigned short |
local_port, |
|
|
std::string |
local_ip = "0.0.0.0" |
|
) |
| |
|
inline |
virtual void eip::socket::UDPSocket::close |
( |
| ) |
|
|
inlinevirtual |
virtual void eip::socket::UDPSocket::open |
( |
string |
hostname, |
|
|
string |
port |
|
) |
| |
|
inlinevirtual |
Open the socket to connect to the given hostname and port
- Parameters
-
hostname | Hostname to connect to |
port | Name 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 | ) |
|
|
inlinevirtual |
Receive bytes from the socket
- Parameters
-
buf | Buffer 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 | ) |
|
|
inlinevirtual |
Send the contents of the buffer out the socket
- Parameters
-
buf | Data to send out the socket |
- Returns
- number of bytes written
Implements eip::socket::Socket.
Definition at line 79 of file udp_socket.h.
udp::endpoint eip::socket::UDPSocket::local_endpoint_ |
|
private |
udp::endpoint eip::socket::UDPSocket::remote_endpoint_ |
|
private |
udp::socket eip::socket::UDPSocket::socket_ |
|
private |
The documentation for this class was generated from the following file: