Navigation
API > API/Runtime > API/Runtime/Sockets
References
| Module | Sockets |
| Header | /Engine/Source/Runtime/Sockets/Public/MultichannelTcpSocket.h |
| Include | #include "MultichannelTcpSocket.h" |
Syntax
class FMultichannelTcpSocket
Remarks
Class to multiplex several streams on a single TCP socket.
The primary feature here is to allow blocking reads to multiple channels simultaneously without interference. Generally one of these is created on both sides of the connection, immediately after the connection is established
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMultichannelTcpSocket
(
FSocket* InSocket, |
Creates and initializes a new instance. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | BlockingReceive
(
uint8* Data, |
Block until data is available to receive. | |
| int32 | DataAvailable
(
uint32 Channel |
Non-blocking test of available data. | |
| int32 | PollingReceive
(
uint8* Data, |
Non-blocking return of available data. | |
| void | Send data out a given channel, this does not block on bandwidth, and never fails. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| API/Runtime/Sockets/FMultichannelTcpSocket_1 |