UWebSocketConnection

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

WebSocketNetworking

Header

/Engine/Plugins/Experimental/WebSocketNetworking/Source/WebSocketNetworking/Public/WebSocketConnection.h

Include

#include "WebSocketConnection.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Transient, Config=Engine)
class UWebSocketConnection : public UNetConnection

Variables

Name Description

Public variable

bool

 

bChallengeHandshake

Public variable

INetworkingWebS...

 

WebSocket

Constructors

Name Description

Public function

UWebSocketConnection

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

INetworkingW...

 

GetWebSocket()

Public function

void

 

SetWebSocket

(
    INetworkingWebSocket* InWebSoc...
)

Overridden from UNetConnection

Name Description

Public function Virtual

void

 

InitBase

(
    UNetDriver* InDriver,
    FSocket* InSocket,
    const FURL& InURL,
    EConnectionState InState,
    int32 InMaxPacket,
    int32 InPacketOverhead
)

Initialize common settings for this connection instance

Public function Virtual

void

 

InitLocalConnection

(
    UNetDriver* InDriver,
    FSocket* InSocket,
    const FURL& InURL,
    EConnectionState InState,
    int32 InMaxPacket,
    int32 InPacketOverhead
)

Initialize this connection instance to a remote source

Public function Virtual

void

 

InitRemoteConnection

(
    UNetDriver* InDriver,
    FSocket* InSocket,
    const FURL& InURL,
    const FInternetAddr& InRemoteAddr,
    EConnectionState InState,
    int32 InMaxPacket,
    int32 InPacketOverhead
)

Initialize this connection instance from a remote source

Public function Virtual

FString

 

LowLevelDescribe()

Public function Virtual

FString

 

LowLevelGetRemoteAddress

(
    bool bAppendPort
)

Public function Virtual

void

 

LowLevelSend

(
    void* Data,
    int32 CountBits,
    FOutPacketTraits& Traits
)

Sends a byte stream to the remote endpoint using the underlying socket

Public function Virtual

void

 

ReceivedRawPacket

(
    void* Data,
    int32 Count
)

Allows the connection to process the raw data that was received

Public function Virtual

void

 

Tick

(
    float DeltaSeconds
)

Poll the connection. If it is timed out, close it.

Overridden from UObject

Name Description

Public function Virtual

void

 

FinishDestroy()

Called to finish destroying the object.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss