#include <tcp_socket.h>
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) |
TCPSocket (io_service &io_serv) | |
Private Attributes | |
tcp::socket | socket_ |
TCP Implementation of the Socket interface
Definition at line 45 of file tcp_socket.h.
eip::socket::TCPSocket::TCPSocket | ( | io_service & | io_serv | ) | [inline] |
Definition at line 49 of file tcp_socket.h.
virtual void eip::socket::TCPSocket::close | ( | ) | [inline, virtual] |
virtual void eip::socket::TCPSocket::open | ( | string | hostname, |
string | port | ||
) | [inline, virtual] |
Open the socket to connect to the given hostname and port
hostname | Hostname to connect to |
port | Name or number of port to connect to |
Implements eip::socket::Socket.
Definition at line 56 of file tcp_socket.h.
virtual size_t eip::socket::TCPSocket::receive | ( | mutable_buffer | buf | ) | [inline, virtual] |
Receive bytes from the socket
buf | Buffer into which to store received data |
Implements eip::socket::Socket.
Definition at line 87 of file tcp_socket.h.
virtual size_t eip::socket::TCPSocket::send | ( | const_buffer | buf | ) | [inline, virtual] |
Send the contents of the buffer out the socket
buf | Data to send out the socket |
Implements eip::socket::Socket.
Definition at line 77 of file tcp_socket.h.
tcp::socket eip::socket::TCPSocket::socket_ [private] |
Definition at line 94 of file tcp_socket.h.