Navigation
Unreal Engine C++ API Reference > Plugins > SteamSockets
Inheritance Hierarchy
- ISocketSubsystem
- FTSTickerObjectBase
- FSelfRegisteringExec
- FSteamSocketsSubsystem
References
Module | SteamSockets |
Header | /Engine/Plugins/Runtime/Steam/SteamSockets/Source/SteamSockets/Public/SteamSocketsSubsystem.h |
Include | #include "SteamSocketsSubsystem.h" |
Syntax
class FSteamSocketsSubsystem :
public ISocketSubsystem,
public FTSTickerObjectBase,
public FSelfRegisteringExec
Remarks
Steam Sockets specific socket subsystem implementation. This class can only be used with the SteamSocketsNetDriver and the SteamSocketsNetConnection classes. This subsystem does not support mixing any other NetDriver/NetConnection format. Doing so will cause this protocol to not function.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bShouldTestPeek | Flag for testing peek messaging (only usable in non-shipping builds) |
![]() |
bool | bUseRelays | Determines if the connections are going to be using the relay network |
![]() |
int32 | LastSocketError | Last error set by the socket subsystem or one of its sockets |
![]() |
TArray< FSteamPendingSocketInformation > | PendingListenerArray | Array of listeners we need to activate. |
![]() |
SocketHandleInfoMap | SocketInformationMap | |
![]() |
TSharedPtr< class FSteamClientInstanceHandler > | SteamAPIClientHandle | Steam Client API Handle |
![]() |
TSharedPtr< class FSteamServerInstanceHandler > | SteamAPIServerHandle | Steam Server API Handle |
![]() |
TUniquePtr< class FSteamSocketsTaskManagerInterface > | SteamEventManager | Event manager for Steam tasks |
![]() |
FDelegateHandle | SteamServerLoginDelegateHandle | Delegate handle for handling when a dedicated server logs into the Steam platform. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddDelayedListener
(
FSteamSocket* ListenSocket, |
Delayed listen socket helpers. |
![]() |
void | AddSocket
(
const FInternetAddr& ForAddr, |
Steam socket bookkeeping modifiers. |
![]() |
void | CleanSocketInformation
(
bool bForceClean |
|
![]() ![]() |
FSteamSocketsSubsystem * | Create () |
Singleton helpers. |
![]() ![]() |
void | Destroy () |
|
![]() ![]() |
void | ||
![]() |
TSharedPtr< FInternetAddr > | Returns this machine's identity in the form of a FInternetAddrSteamSockets. | |
![]() |
FSteamSocketInformation * | GetSocketInfo
(
const FInternetAddr& ForAddress |
Steam socket queriers. |
![]() |
FSteamSocketInformation * | GetSocketInfo
(
SteamSocketHandles InternalSocketHandle |
Steam socket queriers. |
![]() ![]() |
ISteamNetworkingSockets * | ||
![]() ![]() |
bool | Returns if our account is currently logged into the Steam network. | |
![]() ![]() |
bool | Basic function to determine if Steam has been initialized properly. | |
![]() ![]() |
bool | Returns if the application is using the SteamSocket relays | |
![]() |
void | LinkNetDriver
(
FSocket* Socket, |
|
![]() |
void | OnServerLoginComplete
(
bool bWasSuccessful |
|
![]() |
void | QueueRemoval
(
SteamSocketHandles SocketHandle |
|
![]() |
void | RemoveSocketsForListener
(
FSteamSocket* ListenerSocket |
|
![]() |
void | SteamSocketEventHandler
(
SteamNetConnectionStatusChangedCallback_t* ConnectionEvent |
SteamAPI internals handler. |
Overridden from ISocketSubsystem
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TSharedRef< FInternetAddr > | CreateInternetAddr
(
const FName ProtocolType |
Create a FInternetAddr of the desired protocol |
![]() ![]() |
TSharedRef< FInternetAddr > | Create a proper FInternetAddr representation | |
![]() ![]() |
FSocket * | CreateSocket
(
const FName& SocketType, |
Creates a socket using the given protocol name. |
![]() ![]() |
void | DestroySocket
(
FSocket* Socket |
Cleans up a socket class |
![]() ![]() |
TSharedPtr< FInternetAddr > | GetAddressFromString
(
const FString& InAddress |
Serializes a string that only contains an address. |
![]() ![]() |
FAddressInfoResult | GetAddressInfo
(
const TCHAR* HostName, |
Gets the address information of the given hostname and outputs it into an array of resolvable addresses. |
![]() ![]() |
bool | GetHostName
(
FString& HostName |
Determines the name of the local machine |
![]() ![]() |
ESocketErrors | Returns the last error that has happened | |
![]() ![]() |
bool | GetLocalAdapterAddresses
(
TArray< TSharedPtr< FInternetAddr >>& OutAddresses |
Gets the list of addresses associated with the adapters on the local computer. |
![]() ![]() |
TArray< TSharedRef< FInternetAddr > > | Get bindable addresses that this machine can use as reported by GetAddressInfo with the BindableAddress flag. | |
![]() ![]() ![]() |
const TCHAR * | Get the name of the socket subsystem | |
![]() ![]() |
bool | ||
![]() ![]() |
bool | Does per platform initialization of the sockets library | |
![]() ![]() ![]() |
bool | Returns true if FSocket::Wait is supported by this socket subsystem. | |
![]() ![]() |
bool | Some platforms require chat data (voice, text, etc.) to be placed into packets in a special way. | |
![]() ![]() |
bool | Some platforms require packets be encrypted. | |
![]() ![]() |
void | Shutdown () |
Performs platform specific socket clean up |
![]() ![]() |
ESocketErrors | TranslateErrorCode
(
int32 Code |
Translates the platform error code to a ESocketErrors enum |
Overridden from FTSTickerObjectBase
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | Tick
(
float DeltaTime |
Pure virtual that must be overloaded by the inheriting class. |
Overridden from FExec
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | Exec_Dev
(
UWorld* InWorld, |
Implementation of Exec that is only called in non-shipping targets |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FSteamPendingSocketInformation | Structure for handling sockets that cannot be established due to platform login (for listener sockets) | |
![]() |
FSteamSocketInformation | A struct for holding steam socket information and managing bookkeeping on the protocol. |
Typedefs
Name | Description |
---|---|
SocketHandleInfoMap | Active connection bookkeeping |
Constants
Name | Description |
---|---|
SocketSingleton | Single instantiation of this subsystem |