SimpleTCPClientDocumentation

Send and Receive TCP Client Messages

Receive messages

Node FunctionDescription
BindMessageHandleBind a message receive delegate
UnbindMessageHandleUnbind a specific delegate
UnbindAllMessageHandleUnbind all delegates and close socket

Bind and unbind a message handler

ReceiveMessage

Send messages

Node FunctionDescription
SendMessageSend a byte array through a specific channel

Send a string or structured data

Send data using the channel name you connected with. Agree on encoding and message framing at both ends. A receive callback gets a chunk of the TCP stream, which may hold part of a message or several messages.

SendMessage

Convert between byte arrays and application data

Use SimpleByteConversion to convert between common Unreal types (FString, float, int, and others) and TArray<uint8> when reading or writing structured data.

SimpleByteConversion tutorial