Problem creating a session

Hello, first sorry for my english.
Im noob in c++ unreal programming and i am trying to create a function to make a session but when i try to find this with the BP module that unreal plugin provide us, i cant find it.




void UGIMultiplayer::AdvanceCreateSession(FName nameSession, Int32 numberMaxPlayer){

IOnlineSessionPtr session;
IOnlineSubSystem* onlineSub = IOnlineSubsystem::Get();
[FOnlineSessionSettings](http://api.unrealengine.com/INT/API/Plugins/OnlineSubsystem/FOnlineSessionSettings/index.html) settings;
settings.bIsLANMatch = false;
settings.NumPublicConnections = numberMaxPlayer;
session = onlineSub->GetSessionInterface();
session->CreateSession(numberMaxPlayer,nameSession, settings);



}

what am i doing wrong?