Navigation
API > API/Plugins > API/Plugins/SocketSubsystemEOS
Inheritance Hierarchy
- ISocketSubsystem
- FSocketSubsystemEOS
References
| Module | SocketSubsystemEOS |
| Header | /Engine/Plugins/Online/SocketSubsystemEOS/Source/SocketSubsystemEOS/Public/SocketSubsystemEOS.h |
| Include | #include "SocketSubsystemEOS.h" |
Syntax
class FSocketSubsystemEOS : public ISocketSubsystem
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSocketSubsystemEOS
(
IEOSPlatformHandlePtr InPlatformHandle, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | BindChannel
(
const FInternetAddrEOS& Address |
Bind our socket name & channel and ensure no other connections are using this combination | |
| TSharedRef< FInternetAddr > | GetLocalBindAddr
(
const UWorld*const OwningWorld, |
||
| FSocketSubsystemEOS * | GetSocketSubsystemForWorld
(
UWorld* InWorld |
Returns the FSocketSubsytemEOS instance corresponding with the UWorld* parameter. | |
| void | SetLastSocketError
(
const ESocketErrors NewSocketError |
||
| bool | UnbindChannel
(
const FInternetAddrEOS& Address |
Unbind a previously bound socket name and channel. |
Overridden from ISocketSubsystem
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< FInternetAddr > | Create a proper FInternetAddr representation | ||
| FResolveInfoCached * | CreateResolveInfoCached
(
TSharedPtr< FInternetAddr > Addr |
Creates a resolve info cached struct to hold the resolved address | |
| 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& InString |
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 > >& OutAdresses |
Gets the list of addresses associated with the adapters on the local computer. | |
| TSharedRef< FInternetAddr > | GetLocalBindAddr
(
FOutputDevice& Out |
Get a local IP to bind to. | |
| 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 |
Constants
| Name | Description |
|---|---|
| SocketSubsystemEOSInstances | Static array of all instances of FSocketSubsystemEOS running concurrently (can be more than one in PIE) |
| SocketSubsystemEOSPerWorldMap | Static map of world to corresponding FSocketSubsystemeOS instance |