Navigation
API > API/Plugins > API/Plugins/OSC
| Name | UOSCServer |
| Type | class |
| Header File | /Engine/Plugins/Runtime/OSC/Source/OSC/Public/OSCServer.h |
| Include Path | #include "OSCServer.h" |
Syntax
UCLASS (BlueprintType)
class UOSCServer : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UOSCServer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UOSCServer
(
const FObjectInitializer& ObjectInitializer |
OSCServer.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FPacketQueue | TSpscQueue< TSharedPtr< UE::OSC::IPacket > > | OSCServer.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnOscBundleReceived | FOSCReceivedBundleEvent | Event that gets called when an OSC bundle is received. | OSCServer.h |
|
| OnOscBundleReceivedNative | FOSCReceivedBundleNativeEvent | Native event that gets called when an OSC bundle is received. | OSCServer.h | |
| OnOscMessageReceived | FOSCReceivedMessageEvent | Event that gets called when an OSC message is received. | OSCServer.h |
|
| OnOscMessageReceivedNative | FOSCReceivedMessageNativeEvent | Native event that gets called when an OSC message is received. | OSCServer.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AddressPatterns | TMap< FOSCAddress, FOSCDispatchMessageEvent > | Address pattern hash to check against when dispatching incoming messages | OSCServer.h | |
| OSCPackets | TSharedPtr< FPacketQueue > | Queue stores incoming OSC packet requests to process on the game thread. | OSCServer.h | |
| ServerProxy | TSharedPtr< UE::OSC::IServerProxy > | Pointer to internal implementation of server proxy | OSCServer.h | |
| TickHandle | FTSTicker::FDelegateHandle | OSCServer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddAllowlistedClient
(
const FString& IPAddress, |
Adds client to allowlist of clients to listen for. | OSCServer.h |
|
void BindEventToOnOSCAddressPatternMatchesPath
(
const FOSCAddress& OSCAddressPattern, |
Adds event to dispatch when OSCAddressPattern is matched. | OSCServer.h |
|
void ClearAllowlistedClients() |
Clears client allowlist to listen for. | OSCServer.h |
|
void ClearPackets() |
OSCServer.h | ||
void EnqueuePacket
(
TSharedPtr< UE::OSC::IPacket > InPacket |
OSCServer.h | ||
TSet< FString > GetAllowlistedClients
(
bool bIncludePort |
Returns set of allowlisted endpoint clients as strings with (optional) port included. | OSCServer.h |
|
TArray< FOSCAddress > GetBoundOSCAddressPatterns() |
Returns set of OSCAddressPatterns currently listening for matches to dispatch. | OSCServer.h |
|
FString GetIpAddress
(
bool bIncludePort |
Returns the IP for the server if connected as a string. | OSCServer.h |
|
bool GetMulticastLoopback() |
Gets whether or not to loopback if ReceiveIPAddress provided is multicast. | OSCServer.h |
|
int32 GetPort() |
Returns the port for the server if connected. | OSCServer.h |
|
bool IsActive() |
Returns whether server is actively listening to incoming messages. | OSCServer.h |
|
void Listen() |
Sets the IP address and port to listen for OSC data. | OSCServer.h |
|
void PumpPacketQueue
(
const TSet< uint32 >* InAllowlistedClients |
OSCServer.h | ||
void RemoveAllowlistedClient
(
const FString& IPAddress, |
Removes allowlisted client to listen for. | OSCServer.h |
|
bool SetAddress
(
const FString& ReceiveIPAddress, |
Set the address and port of server. Fails if server is currently active. | OSCServer.h |
|
void SetAllowlistClientsEnabled
(
bool bEnabled |
When set to true, server will only process received messages from allowlisted clients. | OSCServer.h |
|
void SetMulticastLoopback
(
bool bMulticastLoopback |
Set whether or not to loopback if ReceiveIPAddress provided is multicast. | OSCServer.h |
|
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). | OSCServer.h |
|
void Stop() |
Stop and tidy up network socket. | OSCServer.h |
|
void UnbindAllEventsFromOnOSCAddressPatternMatchesPath
(
const FOSCAddress& OSCAddressPattern |
Removes OSCAddressPattern from sending dispatch events. | OSCServer.h |
|
void UnbindAllEventsFromOnOSCAddressPatternMatching() |
Removes all events from OSCAddressPatterns to dispatch. | OSCServer.h |
|
void UnbindEventFromOnOSCAddressPatternMatchesPath
(
const FOSCAddress& OSCAddressPattern, |
Unbinds specific event from OSCAddress pattern. | OSCServer.h |
|
Protected
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
OSCServer.h | ||
virtual void PostInitProperties() |
OSCServer.h |