Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/ISocketSubsystem
Description
Queries the state of multiple sockets in a single call (equivalent to poll/select). Not supported on all platforms: check IsSocketWaitSupported() before calling.
| Name | QuerySocketStateMany |
| Type | function |
| Header File | /Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
| Include Path | #include "SocketSubsystem.h" |
| Source | /Engine/Source/Runtime/Sockets/Private/SocketSubsystem.cpp |
virtual void QuerySocketStateMany
(
TArrayView< FSocket * > Sockets,
TArray< ESocketStateFlags > & InOutSocketStates,
FTimespan WaitTime
) const
Parameters
| Name | Remarks |
|---|---|
| Sockets | The sockets to query. |
| InOutSocketStates | On input, the flags to query per socket (Readable, Writable, Error). On output, the flags that are actually set. Must be the same length as Sockets. |
| WaitTime | Maximum time to block waiting for any socket to become ready. Pass FTimespan(-1) to block indefinitely, or FTimespan::Zero() to poll without blocking. |