FName CreateSocketSubsystem( FSocketSubsystemModule& SocketSubsystemModule ) { FName SubsystemName(TEXT("HTML5")); FSocketSubsystemHTML5* SocketSubsystem = FSocketSubsystemHTML5::Create(); FString Error; if (SocketSubsystem->Init(Error)) { SocketSubsystemModule.RegisterSocketSubsystem(SubsystemName, SocketSubsystem); return SubsystemName; } else { FSocketSubsystemHTML5::Destroy(); return NAME_None; } }
FName CreateSocketSubsystem( FSocketSubsystemModule& SocketSubsystemModule ) { FName SubsystemName(TEXT("IOS")); // Create and register our singleton factor with the main online subsystem for easy access FSocketSubsystemIOS* SocketSubsystem = FSocketSubsystemIOS::Create(); FString Error; if (SocketSubsystem->Init(Error)) { SocketSubsystemModule.RegisterSocketSubsystem(SubsystemName, SocketSubsystem); return SubsystemName; } else { FSocketSubsystemIOS::Destroy(); return NAME_None; } }
void DestroySocketSubsystem( FSocketSubsystemModule& SocketSubsystemModule ) { SocketSubsystemModule.UnregisterSocketSubsystem(FName(TEXT("HTML5"))); FSocketSubsystemHTML5::Destroy(); }
void DestroySocketSubsystem( FSocketSubsystemModule& SocketSubsystemModule ) { SocketSubsystemModule.UnregisterSocketSubsystem(FName(TEXT("IOS"))); FSocketSubsystemIOS::Destroy(); }
void DestroySocketSubsystem( FSocketSubsystemModule& SocketSubsystemModule ) { SocketSubsystemModule.UnregisterSocketSubsystem(FName(TEXT("LINUX"))); FSocketSubsystemLinux::Destroy(); }