Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QWasmSocket Class Reference

#include <qwasmsocket_p.h>

Collaboration diagram for QWasmSocket:

Static Public Member Functions

static void registerSocketNotifier (QSocketNotifier *notifier)
static void unregisterSocketNotifier (QSocketNotifier *notifier)
static void clearSocketNotifiers ()
static void setEmscriptenSocketCallbacks ()
static void clearEmscriptenSocketCallbacks ()
static void socketError (int fd, int err, const char *msg, void *context)
static void socketOpen (int fd, void *context)
static void socketListen (int fd, void *context)
static void socketConnection (int fd, void *context)
static void socketMessage (int fd, void *context)
static void socketClose (int fd, void *context)
static void setSocketState (int socket, bool setReadyRead, bool setReadyWrite)
static void clearSocketState (int socket)
static void waitForSocketState (QEventDispatcherWasm *eventDispatcher, int timeout, int socket, bool checkRead, bool checkWrite, bool *selectForRead, bool *selectForWrite, bool *socketDisconnect)

Detailed Description

Definition at line 20 of file qwasmsocket_p.h.

Member Function Documentation

◆ clearEmscriptenSocketCallbacks()

void QWasmSocket::clearEmscriptenSocketCallbacks ( )
static

Definition at line 84 of file qwasmsocket.cpp.

Referenced by clearSocketNotifiers(), and unregisterSocketNotifier().

Here is the caller graph for this function:

◆ clearSocketNotifiers()

void QWasmSocket::clearSocketNotifiers ( )
static

Definition at line 61 of file qwasmsocket.cpp.

References clearEmscriptenSocketCallbacks().

Here is the call graph for this function:

◆ clearSocketState()

void QWasmSocket::clearSocketState ( int socket)
static

Definition at line 201 of file qwasmsocket.cpp.

Referenced by socketClose().

Here is the caller graph for this function:

◆ registerSocketNotifier()

void QWasmSocket::registerSocketNotifier ( QSocketNotifier * notifier)
static

Definition at line 27 of file qwasmsocket.cpp.

References qwasmglobal::runOnMainThread(), and setEmscriptenSocketCallbacks().

Here is the call graph for this function:

◆ setEmscriptenSocketCallbacks()

void QWasmSocket::setEmscriptenSocketCallbacks ( )
static

Definition at line 72 of file qwasmsocket.cpp.

References socketClose(), socketConnection(), socketError(), socketListen(), socketMessage(), and socketOpen().

Referenced by registerSocketNotifier().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSocketState()

void QWasmSocket::setSocketState ( int socket,
bool setReadyRead,
bool setReadyWrite )
static

Definition at line 184 of file qwasmsocket.cpp.

Referenced by socketClose(), socketError(), socketMessage(), and socketOpen().

Here is the caller graph for this function:

◆ socketClose()

void QWasmSocket::socketClose ( int fd,
void * context )
static

Definition at line 164 of file qwasmsocket.cpp.

References clearSocketState(), qwasmglobal::runAsync(), and setSocketState().

Referenced by setEmscriptenSocketCallbacks().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ socketConnection()

void QWasmSocket::socketConnection ( int fd,
void * context )
static

Definition at line 142 of file qwasmsocket.cpp.

Referenced by setEmscriptenSocketCallbacks().

Here is the caller graph for this function:

◆ socketError()

void QWasmSocket::socketError ( int fd,
int err,
const char * msg,
void * context )
static

Definition at line 96 of file qwasmsocket.cpp.

References qwasmglobal::runAsync(), and setSocketState().

Referenced by setEmscriptenSocketCallbacks().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ socketListen()

void QWasmSocket::socketListen ( int fd,
void * context )
static

Definition at line 136 of file qwasmsocket.cpp.

Referenced by setEmscriptenSocketCallbacks().

Here is the caller graph for this function:

◆ socketMessage()

void QWasmSocket::socketMessage ( int fd,
void * context )
static

Definition at line 148 of file qwasmsocket.cpp.

References qwasmglobal::runAsync(), and setSocketState().

Referenced by setEmscriptenSocketCallbacks().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ socketOpen()

void QWasmSocket::socketOpen ( int fd,
void * context )
static

Definition at line 120 of file qwasmsocket.cpp.

References qwasmglobal::runAsync(), and setSocketState().

Referenced by setEmscriptenSocketCallbacks().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unregisterSocketNotifier()

void QWasmSocket::unregisterSocketNotifier ( QSocketNotifier * notifier)
static

Definition at line 45 of file qwasmsocket.cpp.

References clearEmscriptenSocketCallbacks(), and qwasmglobal::runOnMainThread().

Here is the call graph for this function:

◆ waitForSocketState()

void QWasmSocket::waitForSocketState ( QEventDispatcherWasm * eventDispatcher,
int timeout,
int socket,
bool checkRead,
bool checkWrite,
bool * selectForRead,
bool * selectForWrite,
bool * socketDisconnect )
static

Definition at line 207 of file qwasmsocket.cpp.


The documentation for this class was generated from the following files: