Navigation
Unreal Engine C++ API Reference > Plugins > OSC
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UOSCServer
References
Module | OSC |
Header | /Engine/Plugins/Runtime/OSC/Source/OSC/Public/OSCServer.h |
Include | #include "OSCServer.h" |
Syntax
UCLASS&40;BlueprintType&41;
class UOSCServer : public UObject
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() |
FOSCReceivedBundleEvent | OnOscBundleReceived | Event that gets called when an OSC bundle is received. |
![]() |
FOSCReceivedBundleNativeEvent | OnOscBundleReceivedNative | Native event that gets called when an OSC bundle is received. |
![]() ![]() ![]() ![]() |
FOSCReceivedMessageEvent | OnOscMessageReceived | Event that gets called when an OSC message is received. |
![]() |
FOSCReceivedMessageNativeEvent | OnOscMessageReceivedNative | Native event that gets called when an OSC message is received. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UOSCServer
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | AddAllowlistedClient
(
const FString& IPAddress |
Adds client to allowlist of clients to listen for. |
![]() ![]() ![]() |
void | BindEventToOnOSCAddressPatternMatchesPath
(
const FOSCAddress& OSCAddressPattern, |
Adds event to dispatch when OSCAddressPattern is matched. |
![]() ![]() ![]() |
void | Clears client allowlist to listen for. | |
![]() |
void | ClearPackets () |
Clears all packets pending processing |
![]() |
void | EnqueuePacket
(
TSharedPtr< IOSCPacket > InPacket |
Enqueues packet to be processed |
![]() ![]() ![]() ![]() |
TSet< FString > | Returns set of allowlisted clients. | |
![]() ![]() ![]() ![]() |
TArray< FOSCAddress > | Returns set of OSCAddressPatterns currently listening for matches to dispatch. | |
![]() ![]() ![]() ![]() |
FString | GetIpAddress
(
bool bIncludePort |
Returns the IP for the server if connected as a string. |
![]() ![]() ![]() ![]() |
bool | Gets whether or not to loopback if ReceiveIPAddress provided is multicast. | |
![]() ![]() ![]() ![]() |
int32 | GetPort () |
Returns the port for the server if connected. |
![]() ![]() ![]() ![]() |
bool | IsActive () |
Returns whether server is actively listening to incoming messages. |
![]() ![]() ![]() |
void | Listen () |
Sets the IP address and port to listen for OSC data. |
![]() |
void | PumpPacketQueue
(
const TSet< uint32 >* InAllowlistedClients |
Callback for when packet is received by server |
![]() ![]() ![]() |
void | RemoveAllowlistedClient
(
const FString& IPAddress |
Removes allowlisted client to listen for. |
![]() ![]() ![]() |
bool | SetAddress
(
const FString& ReceiveIPAddress, |
Set the address and port of server. Fails if server is currently active. |
![]() ![]() ![]() |
void | SetAllowlistClientsEnabled
(
bool bEnabled |
When set to true, server will only process received messages from allowlisted clients. |
![]() ![]() ![]() |
void | SetMulticastLoopback
(
bool bMulticastLoopback |
Set whether or not to loopback if ReceiveIPAddress provided is multicast. |
![]() ![]() ![]() |
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). |
![]() ![]() ![]() |
void | Stop () |
Stop and tidy up network socket. |
![]() ![]() ![]() |
void | UnbindAllEventsFromOnOSCAddressPatternMatchesPath
(
const FOSCAddress& OSCAddressPattern |
Removes OSCAddressPattern from sending dispatch events. |
![]() ![]() ![]() |
void | Removes all events from OSCAddressPatterns to dispatch. | |
![]() ![]() ![]() |
void | UnbindEventFromOnOSCAddressPatternMatchesPath
(
const FOSCAddress& OSCAddressPattern, |
Unbinds specific event from OSCAddress pattern. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | BeginDestroy () |
Called before destroying the object. |