![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include "stdafx.h"#include "stdio.h"#include <iostream>#include <sstream>#include <memory>#include <string>#include <stdexcept>
Include dependency graph for SraClientConnectionTest.cpp:Go to the source code of this file.
Functions | |
| __declspec (dllexport) int SraLogin(wchar_t *user | |
| int | _tmain (int argc, _TCHAR *argv[]) |
Variables | |
| wchar_t * | pw |
| __declspec | ( | dllexport | ) |
This class is used for debugging and testing the SraClientConnection without having to start an udk client.
| int _tmain | ( | int | argc, |
| _TCHAR * | argv[] | ||
| ) |
Definition at line 21 of file SraClientConnectionTest.cpp.
References L.
{
if (!SraConnectToServer( L"192.168.2.1"))
{
printf("Failed to connect to server\n");
system("Pause");
return 1;
}
wchar_t* user = L"Tharbas";
wchar_t* pw = L"Test";
int userID = SraLogin( user,pw );
printf("userID: %d\n ",userID);
wchar_t *zone = SraGetZone(userID);
if (zone == NULL) {
printf("Connection to server lost\n");
} else {
printf("Zone address : %ls\n", zone);
}
SraShutdown();
system("Pause");
return 0;
}
| wchar_t* pw |
Definition at line 14 of file SraClientConnectionTest.cpp.
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.