#include <socket.h>
◆ Protocol
◆ ~Socket()
◆ Socket()
| Socket::Socket |
( |
cutils_socket_t |
sock | ) |
|
|
explicitprotected |
◆ Accept()
| virtual std::unique_ptr< Socket > Socket::Accept |
( |
| ) |
|
|
inlinevirtual |
◆ Close()
◆ DISALLOW_COPY_AND_ASSIGN()
| Socket::DISALLOW_COPY_AND_ASSIGN |
( |
Socket |
| ) |
|
|
private |
◆ FRIEND_TEST() [1/2]
| Socket::FRIEND_TEST |
( |
SocketTest |
, |
|
|
TestTcpSendBuffers |
|
|
) |
| |
|
private |
◆ FRIEND_TEST() [2/2]
| Socket::FRIEND_TEST |
( |
SocketTest |
, |
|
|
TestUdpSendBuffers |
|
|
) |
| |
|
private |
◆ GetErrorMessage()
| std::string Socket::GetErrorMessage |
( |
| ) |
|
|
static |
◆ GetLocalPort()
| int Socket::GetLocalPort |
( |
| ) |
|
◆ NewClient()
| std::unique_ptr< Socket > Socket::NewClient |
( |
Protocol |
protocol, |
|
|
const std::string & |
hostname, |
|
|
int |
port, |
|
|
std::string * |
error |
|
) |
| |
|
static |
◆ NewServer()
| std::unique_ptr< Socket > Socket::NewServer |
( |
Protocol |
protocol, |
|
|
int |
port |
|
) |
| |
|
static |
◆ Receive()
| virtual ssize_t Socket::Receive |
( |
void * |
data, |
|
|
size_t |
length, |
|
|
int |
timeout_ms |
|
) |
| |
|
pure virtual |
◆ ReceiveAll()
| ssize_t Socket::ReceiveAll |
( |
void * |
data, |
|
|
size_t |
length, |
|
|
int |
timeout_ms |
|
) |
| |
|
virtual |
◆ ReceiveTimedOut()
| bool Socket::ReceiveTimedOut |
( |
| ) |
|
|
inline |
◆ Send() [1/2]
| virtual bool Socket::Send |
( |
const void * |
data, |
|
|
size_t |
length |
|
) |
| |
|
pure virtual |
◆ Send() [2/2]
| virtual bool Socket::Send |
( |
std::vector< cutils_socket_buffer_t > |
buffers | ) |
|
|
pure virtual |
◆ WaitForRecv()
| bool Socket::WaitForRecv |
( |
int |
timeout_ms | ) |
|
|
protected |
◆ receive_timed_out_
| bool Socket::receive_timed_out_ = false |
|
protected |
◆ sock_
| cutils_socket_t Socket::sock_ = INVALID_SOCKET |
|
protected |
◆ socket_send_buffers_function_
| std::function<ssize_t(cutils_socket_t, cutils_socket_buffer_t*, size_t)> Socket::socket_send_buffers_function_ = &socket_send_buffers |
|
protected |
The documentation for this class was generated from the following files: