List of all members.
Detailed Description
The network session login is used to request open games sessions over the network. This should be done by the clients only.
void SessionAnswerProc(const network::NetworkAddress &ServerAddress, const io::stringc &SessionDescription)
{
}
network::NetworkSessionLogin Login;
Login.setSessionKey(SessionKey);
Login.setSessionAnswerCallback(SessionAnswerProc);
Login.request(SessionPort, NetSys->getBroadcastIPList());
while (WaitingForAnswers)
{
Login.receiveAnswers();
}
- See also:
- NetworkSessionReception
Constructor & Destructor Documentation
sp::network::NetworkSessionLogin::NetworkSessionLogin |
( |
|
) |
|
sp::network::NetworkSessionLogin::~NetworkSessionLogin |
( |
|
) |
|
Member Function Documentation
io::stringc sp::network::NetworkSessionLogin::getSessionKey |
( |
|
) |
const [inline] |
bool sp::network::NetworkSessionLogin::receiveAnswer |
( |
|
) |
|
Receives the next incomming session request answer. If an answer has been received the session answer callback will be called.
- Returns:
- True if an answer has been received.
- See also:
- setSessionAnswerCallback
bool sp::network::NetworkSessionLogin::request |
( |
u16 |
Port, |
|
|
const std::list< io::stringc > & |
IPAddressList | |
|
) |
| | |
Sends a session request to all specified IP addresses with the given port number.
bool sp::network::NetworkSessionLogin::request |
( |
const NetworkAddress & |
Address |
) |
|
Sends a session request to the specified address.
- Parameters:
-
| Address,: | Specifies the address to which the request is to be send. |
| SessionKey,: | Specifies the session key string. This string must be equal to the sesssion reception's key string (which holds the server). |
- Returns:
- True if the request succeeded.
void sp::network::NetworkSessionLogin::setSessionAnswerCallback |
( |
const SessionAnswerCallback & |
Callback_ |
) |
[inline] |
void sp::network::NetworkSessionLogin::setSessionKey |
( |
const io::stringc & |
Key |
) |
[inline] |
Sets the new session key.
The documentation for this class was generated from the following file: