|
size_t | socketBytes () override |
|
void | throwSSLError (const String &function, int resultCode) const |
|
| SSLSocket (const String &cipherList="ALL") |
|
| ~SSLSocket () override |
|
void | loadKeys (const SSLKeys &keys) |
|
void | setSNIHostName (const String &sniHostName) |
|
void | attach (SOCKET socketHandle, bool accept) override |
|
void | close () noexcept override |
|
SSL * | handle () |
|
size_t | recv (uint8_t *buffer, size_t size) override |
|
size_t | send (const uint8_t *buffer, size_t len) override |
|
| TCPSocket (SOCKET_ADDRESS_FAMILY domain=AF_INET, int32_t type=SOCK_STREAM, int32_t protocol=0) |
|
| ~TCPSocket () override |
|
void | setProxy (std::shared_ptr< Proxy > proxy) |
|
void | close () noexcept override |
|
virtual bool | accept (SOCKET &clientSocketFD, struct sockaddr_in &clientInfo, std::chrono::milliseconds timeout) |
|
size_t | socketBytes () override |
|
bool | readyToRead (std::chrono::milliseconds timeout) override |
|
size_t | readLine (char *buffer, size_t size, char delimiter='\n') |
|
size_t | readLine (Buffer &buffer, char delimiter='\n') |
|
size_t | readLine (String &s, char delimiter='\n') |
|
size_t | read (uint8_t *buffer, size_t size, sockaddr_in *from=nullptr) override |
|
size_t | read (Buffer &buffer, size_t size, sockaddr_in *from=nullptr) override |
|
size_t | read (String &buffer, size_t size, sockaddr_in *from=nullptr) override |
|
template<typename T > |
size_t | read (T &value, sockaddr_in *from=nullptr) |
|
SOCKET | fd () const |
|
void | open_addr (OpenMode openMode=OpenMode::CREATE, const sockaddr_in *addr=nullptr, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
|
| BaseSocket (SOCKET_ADDRESS_FAMILY domain=AF_INET, int32_t type=SOCK_STREAM, int32_t protocol=0) |
|
| BaseSocket (const BaseSocket &other)=delete |
|
| BaseSocket (BaseSocket &&other) noexcept=default |
|
virtual | ~BaseSocket () |
| Destructor.
|
|
BaseSocket & | operator= (const BaseSocket &other)=delete |
|
BaseSocket & | operator= (BaseSocket &&other) noexcept=default |
|
void | blockingMode (bool blocking) |
|
virtual size_t | socketBytes () |
|
virtual void | attach (SOCKET socketHandle, bool accept) |
|
virtual SOCKET | detach () |
|
void | host (const Host &host) |
|
const Host & | host () const |
|
void | open (const Host &host=Host(), OpenMode openMode=OpenMode::CONNECT, bool blockingMode=true, std::chrono::milliseconds timeoutMS=std::chrono::milliseconds(0)) |
|
void | open (const struct sockaddr_in &address, OpenMode openMode=OpenMode::CONNECT, bool blockingMode=true, std::chrono::milliseconds timeoutMS=std::chrono::milliseconds(0)) |
|
void | bind (const char *address, uint32_t portNumber) |
|
void | listen (uint16_t portNumber=0) |
|
virtual void | close () noexcept |
|
bool | active () const |
|
int32_t | control (int flag, const uint32_t *check) const |
|
void | setOption (int level, int option, int value) const |
|
void | getOption (int level, int option, int &value) const |
|
virtual size_t | recv (uint8_t *buffer, size_t len) |
|
virtual size_t | send (const uint8_t *buffer, size_t len) |
|
virtual size_t | read (uint8_t *buffer, size_t size, sockaddr_in *from) |
|
virtual size_t | read (uint8_t *buffer, size_t size) |
|
virtual size_t | read (Buffer &buffer, size_t size, sockaddr_in *from) |
|
size_t | read (Buffer &buffer, size_t size) |
|
virtual size_t | read (String &buffer, size_t size, sockaddr_in *from) |
|
size_t | read (String &buffer, size_t size) |
|
virtual size_t | write (const uint8_t *buffer, size_t size, const sockaddr_in *peer) |
|
size_t | write (const uint8_t *buffer, size_t size) |
|
virtual size_t | write (const Buffer &buffer, const sockaddr_in *peer) |
|
size_t | write (const Buffer &buffer) |
|
virtual size_t | write (const String &buffer, const sockaddr_in *peer) |
|
size_t | write (const String &buffer) |
|
virtual bool | readyToRead (std::chrono::milliseconds timeout) |
|
virtual bool | readyToWrite (std::chrono::milliseconds timeout) |
|
bool | blockingMode () const |
| Return current blocking mode state. More...
|
|
|
void | initContextAndSocket () |
|
void | _open (const Host &host, OpenMode openMode, bool blockingMode, std::chrono::milliseconds timeout) override |
|
void | _open (const struct sockaddr_in &address, OpenMode openMode, bool blockingMode, std::chrono::milliseconds timeout) override |
|
virtual String | getSSLError (const std::string &function, int32_t SSLError) const |
|
TCPSocketReader & | reader () |
|
void | _open (const Host &host, OpenMode openMode, bool blockingMode, std::chrono::milliseconds timeout) override |
|
void | _open (const struct sockaddr_in &address, OpenMode openMode, bool blockingMode, std::chrono::milliseconds timeout) override |
|
Proxy * | proxy () |
|
void | setSocketFD (SOCKET socket) |
|
int32_t | domain () const |
|
int32_t | type () const |
|
int32_t | protocol () const |
|
virtual void | _open (const Host &host, OpenMode openMode, bool blockingMode, std::chrono::milliseconds timeoutMS) |
|
virtual void | _open (const struct sockaddr_in &address, OpenMode openMode, bool blockingMode, std::chrono::milliseconds timeoutMS) |
|