|
| Socket (SOCKET handle) |
|
void | close () override |
|
bool | valid () const |
|
bool | listening () const |
|
bool | connected () const override |
|
bool | listen (std::string const &address, std::string const &port) |
|
std::unique_ptr< Socket > | accept () |
|
bool | connect (std::string const &host, std::string const &port) |
|
std::string | address () const |
|
std::string | port () const |
|
std::string | error () const |
|
bool | wait (int ms=-1) override |
|
bool | setNonBlocking () |
|
ssize_t | send (void const *buffer, size_t length) override |
|
ssize_t | receive (void *buffer, size_t length) override |
|
virtual bool | send (std::string const &buffer) |
|
virtual bool | receive (std::string &buffer) |
|
|
enum class | State { Invalid
, Listening
, Connected
} |
|
|
bool | create (int af) |
|
bool | getSocketInfo (struct sockaddr_storage *ss) const |
|
|
SOCKET | _handle |
|
State | _state |
|
int | _lastError |
|
|
static std::unique_ptr< Socket > | make_protected_unique (Args... args) |
|
◆ close()
void ds2::Host::Socket::close |
( |
| ) |
|
|
overridevirtual |
◆ connected()
bool ds2::Host::Socket::connected |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ receive()
ssize_t ds2::Host::Socket::receive |
( |
void * | buffer, |
|
|
size_t | length ) |
|
overridevirtual |
◆ send()
ssize_t ds2::Host::Socket::send |
( |
void const * | buffer, |
|
|
size_t | length ) |
|
overridevirtual |
◆ wait()
bool ds2::Host::Socket::wait |
( |
int | ms = -1 | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- Headers/DebugServer2/Host/Socket.h
- Sources/Host/Common/Socket.cpp