Navigation
API > API/Plugins > API/Plugins/LearningTraining > API/Plugins/LearningTraining/FSocketTrainer
References
| Module | LearningTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningExternalTrainer.h |
| Include | #include "LearningExternalTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Private/LearningExternalTrainer.cpp |
FSocketTrainer
(
ETrainerResponse & OutResponse,
const TSharedPtr < UE::Learning::ITrainerProcess > & ExternalTrainerProcess,
const TCHAR * IpAddress,
const uint32 Port,
const float InTimeout
)
Remarks
Creates a new Socket trainer
Parameters
| Name | Description |
|---|---|
| OutResponse | Response to the initial connection |
| ExternalTrainerProcess | The external trainer process |
| IpAddress | Server Ip address |
| Port | Server Port |
| Timeout | Timeout to wait in seconds for connection and initial data transfer |