Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils > API/Plugins/OnlineSubsystemUtils/UIpNetDriver
Description
Creates a socket set up for communication using the given protocol. This allows for explicit creation instead of inferring type for you.
| Name | CreateSocketForProtocol |
| Type | function |
| Header File | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Classes/IpNetDriver.h |
| Include Path | #include "IpNetDriver.h" |
| Source | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Private/IpNetDriver.cpp |
virtual FUniqueSocket CreateSocketForProtocol
(
const FName & ProtocolType
)
an FSocket if creation succeeded, nullptr if creation failed.
Parameters
| Name | Remarks |
|---|---|
| ProtocolType | an FName that represents the protocol to allocate the new socket under. Typically set to None or a value in FNetworkProtocolTypes |