| 1 | bearsoft | 1.1 | #include "ServerTest.h" | 
| 2 |  |  | #include "../../String/String.h" | 
| 3 |  |  | #include "../../String/StringInput.h" | 
| 4 |  |  | #include "../../System/System.h" | 
| 5 |  |  | #include "../../NetWork/Server.h" | 
| 6 |  |  | #include "../../System/SystemDefine.h" | 
| 7 |  |  |  | 
| 8 |  |  | ServerTest::ServerTest(){} | 
| 9 |  |  | ServerTest::~ServerTest(){} | 
| 10 |  |  |  | 
| 11 |  |  | void ServerTest::run() | 
| 12 |  |  | { | 
| 13 |  |  | Server *server=new Server(); | 
| 14 |  |  |  | 
| 15 |  |  | //Set up the server | 
| 16 |  |  |  | 
| 17 |  |  | server->start(); | 
| 18 |  |  |  | 
| 19 |  |  | // Call the main example routine. | 
| 20 |  |  | server->DoWinsock(); | 
| 21 |  |  |  | 
| 22 |  |  | //    WSACleanup(); | 
| 23 |  |  |  | 
| 24 |  |  |  | 
| 25 |  |  | delete server; | 
| 26 |  |  |  | 
| 27 |  |  | // Shut Winsock back down and take off. | 
| 28 |  |  |  | 
| 29 |  |  |  | 
| 30 |  |  | } |