qnetdice
diff src/main.h @ 1:92377189a5c6
moving along
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 22 Dec 2013 04:08:50 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/main.h Sun Dec 22 04:08:50 2013 +0200 1.3 @@ -0,0 +1,17 @@ 1.4 +#ifndef MAIN_H_ 1.5 +#define MAIN_H_ 1.6 + 1.7 +#include <vector> 1.8 +#include <QtNetwork/QTcpServer> 1.9 +#include <QtNetwork/QTcpSocket> 1.10 +#include "roll.h" 1.11 + 1.12 +extern std::vector<Roll*> dice; 1.13 + 1.14 +extern QTcpServer *server; 1.15 +extern QTcpSocket *sock; 1.16 + 1.17 +void start_server(int port, const char *passwd); 1.18 +void start_client(const char *host, int port, const char *passwd); 1.19 + 1.20 +#endif // MAIN_H_