AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AWebsocket Class Reference

Websocket implementation.

#include <AUI/Curl/AWebsocket.h>

Member Function Documentation

> All members, including inherited

◆ close()

void AWebsocket::close ( )
overridevirtual

curl does not have a function which immediately stops the transfer (see https://curl.se/docs/faq.html#How_do_I_stop_an_ongoing_transfe). The stop functionality is handled in ACurl by returning error code on all callbacks. close() function is non-blocking, and some time would be taken until the run() method finally returns.

After calling close() method, none of the result signals (like fail, success) will be called.

close() is non-blocking function.

close() is thread-safe.

Reimplemented from ACurl.

◆ write()

void AWebsocket::write ( const char * src,
size_t size )
overridevirtual
Sneaky exceptions
An implementation can throw any exception that subclasses AIOException.
Parameters
srcsource buffer
sizesource buffer's size. > 0

Implements IOutputStream.