UOSCServer

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

OSC

Header

/Engine/Plugins/Runtime/OSC/Source/OSC/Public/OSCServer.h

Include

#include "OSCServer.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(BlueprintType)
class UOSCServer : public UObject

Variables

Name Description

Public variable UProperty Category BlueprintAssignable

FOSCReceivedBun...

 

OnOscBundleReceived

Event that gets called when an OSC bundle is received.

Public variable

FOSCReceivedBun...

 

OnOscBundleReceivedNative

Native event that gets called when an OSC bundle is received.

Public variable UProperty Category BlueprintAssignable

FOSCReceivedMes...

 

OnOscMessageReceived

Event that gets called when an OSC message is received.

Public variable

FOSCReceivedMes...

 

OnOscMessageReceivedNative

Native event that gets called when an OSC message is received.

Constructors

Name Description

Public function

UOSCServer

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function UFunction BlueprintCallable, Category

void

 

AddWhitelistedClient

(
    const FString& IPAddress
)

Adds client to whitelist of clients to listen for.

Public function UFunction BlueprintCallable, Category

void

 

BindEventToOnOSCAddressPatternMatchesPath

(
    const FOSCAddress& OSCAddressPatte...,
    const FOSCDispatchMessageEventBP& ...
)

Adds event to dispatch when OSCAddressPattern is matched.

Public function

void

 

ClearPackets()

Clears all packets pending processing

Public function UFunction BlueprintCallable, Category

void

 

ClearWhitelistedClients()

Clears client whitelist to listen for.

Public function

void

 

EnqueuePacket

(
    TSharedPtr< IOSCPacket > InPacket
)

Enqueues packet to be processed

Public function Const UFunction BlueprintCallable, Category

TArray< FOSC...

 

GetBoundOSCAddressPatterns()

Returns set of OSCAddressPatterns currently listening for matches to dispatch.

Public function Const UFunction BlueprintCallable, Category

FString

 

GetIpAddress

(
    bool bIncludePort
)

Returns the IP for the server if connected as a string.

Public function Const UFunction BlueprintCallable, Category

bool

 

GetMulticastLoopback()

Gets whether or not to loopback if ReceiveIPAddress provided is multicast.

Public function Const UFunction BlueprintCallable, Category

int32

 

GetPort()

Returns the port for the server if connected.

Public function Const UFunction BlueprintCallable, Category

TSet< FStrin...

 

GetWhitelistedClients()

Returns set of whitelisted clients.

Public function Const UFunction BlueprintCallable, Category

bool

 

IsActive()

Returns whether server is actively listening to incoming messages.

Public function UFunction BlueprintCallable, Category

void

 

Listen()

Sets the IP address and port to listen for OSC data.

Public function

void

 

PumpPacketQueue

(
    const TSet< uint32 >* InWhitel...
)

Callback for when packet is received by server

Public function UFunction BlueprintCallable, Category

void

 

RemoveWhitelistedClient

(
    const FString& IPAddress
)

Removes whitelisted client to listen for.

Public function UFunction BlueprintCallable, Category

bool

 

SetAddress

(
    const FString& ReceiveIPAddress,
    int32 Port
)

Set the address and port of server. Fails if server is currently active.

Public function UFunction BlueprintCallable, Category

void

 

SetMulticastLoopback

(
    bool bMulticastLoopback
)

Set whether or not to loopback if ReceiveIPAddress provided is multicast.

Public function UFunction BlueprintCallable, Category

void

 

SetTickInEditor

(
    bool bInTickInEditor
)

Set whether server instance can be ticked in-editor (editor only and available to blueprint for use in editor utility scripts/script actions).

Public function UFunction BlueprintCallable, Category

void

 

SetWhitelistClientsEnabled

(
    bool bEnabled
)

When set to true, server will only process received messages from whitelisted clients.

Public function UFunction BlueprintCallable, Category

void

 

Stop()

Stop and tidy up network socket.

Public function UFunction BlueprintCallable, Category

void

 

UnbindAllEventsFromOnOSCAddressPatternMatchesPath

(
    const FOSCAddress& OSCAddressPatte...
)

Removes OSCAddressPattern from sending dispatch events.

Public function UFunction BlueprintCallable, Category

void

 

UnbindAllEventsFromOnOSCAddressPatternMatching()

Removes all events from OSCAddressPatterns to dispatch.

Public function UFunction BlueprintCallable, Category

void

 

UnbindEventFromOnOSCAddressPatternMatchesPath

(
    const FOSCAddress& OSCAddressPatte...,
    const FOSCDispatchMessageEventBP& ...
)

Unbinds specific event from OSCAddress pattern.

Overridden from UObject

Name Description

Protected function Virtual

void

 

BeginDestroy()

Called before 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