|
| SecuritySocket (std::shared_ptr< SSLContext > context, Socket::Family family, int32_t flags) noexcept |
|
| SecuritySocket (std::shared_ptr< SSLContext > context, void *ssl, socket_t fd) noexcept |
|
int32_t | connect (Address::Ptr address) noexcept override |
|
Socket::Ptr | accept () const override |
|
int32_t | shutdown (ShutdownMode mode) const override |
|
int64_t | read (void *buffer, size_t length) override |
|
int64_t | write (const void *buffer, size_t length) override |
|
void | close () override |
|
void * | getSSL () const |
|
| Socket (Family family, Type type, int32_t protocol=IPPROTO_IP) noexcept |
|
| Socket (socket_t handle, Address::Ptr address) noexcept |
|
| ~Socket () noexcept override |
|
virtual int32_t | bind (Address::Ptr address) noexcept |
|
virtual int32_t | listen (int32_t backlog) const noexcept |
|
bool | setNonblocking () const noexcept |
|
int64_t | read (void *buffer, size_t length) override |
|
int64_t | write (const void *buffer, size_t length) override |
|
int64_t | send (void *buffer, size_t length, const IPAddress::Ptr &to, int32_t flags) const |
|
int64_t | recv (void *buffer, size_t length, const IPAddress::Ptr &from, int32_t flags) const |
|
int64_t | peek (void *buffer, size_t length) override |
|
int64_t | trunc (size_t length) override |
|
int64_t | writeInt16 (int16_t value) |
|
int64_t | writeInt32 (int32_t value) |
|
int64_t | writeInt64 (int64_t value) |
|
int64_t | writeUint16 (uint16_t value) |
|
int64_t | writeUint32 (uint32_t value) |
|
int64_t | writeUint64 (uint64_t value) |
|
int64_t | readInt16 (int16_t &value) |
|
int64_t | readInt32 (int32_t &value) |
|
int64_t | readInt64 (int64_t &value) |
|
int64_t | readUint16 (uint16_t &value) |
|
int64_t | readUint32 (uint32_t &value) |
|
int64_t | readUint64 (uint64_t &value) |
|
void | close () override |
|
const socket_t & | getRawSocket () const |
|
const Address::Ptr & | getAddress () const |
|
virtual | ~InputStream () noexcept=default |
|
virtual | ~OutputStream () noexcept=default |
|
int64_t | write (const std::string_view &buffer) |
|
int64_t | write (const text::StringView &buffer) |
|
template<typename T > |
int64_t | write (std::vector< T > &buffer) |
|
template<typename T , size_t N> |
int64_t | write (std::array< T, N > &buffer) |
|
virtual | ~PeekableStream ()=default |
|
virtual | ~Closeable ()=default |
|
|
static socket_t | socket (int family, int type, int protocol) noexcept |
|
static int | bind (socket_t socket, const sockaddr *addr, socklen_t addr_len) noexcept |
|
static socket_t | accept (socket_t socket, sockaddr *addr=nullptr, socklen_t *len=nullptr) noexcept |
|
static int | connect (socket_t socket, const sockaddr *addr, socklen_t addr_len) noexcept |
|
static int64_t | write (socket_t socket, const void *buffer, size_t len, int flags) noexcept |
|
static int64_t | read (socket_t socket, void *buffer, size_t len, int flags) noexcept |
|
static int | listen (socket_t socket, int backlog) noexcept |
|
static int | setNonblocking (socket_t socket) noexcept |
|
static void | close (socket_t socket) noexcept |
|
static int | shutdown (socket_t socket, ShutdownMode mode) noexcept |
|