add the ice server

This commit is contained in:
Stephen Birarda 2014-10-01 17:19:34 -07:00
parent d6572c3e2e
commit ae90b38172
5 changed files with 77 additions and 0 deletions

View file

@ -58,6 +58,7 @@ endforeach()
# targets on all platforms
add_subdirectory(assignment-client)
add_subdirectory(domain-server)
add_subdirectory(ice-server)
add_subdirectory(interface)
add_subdirectory(tests)
add_subdirectory(tools)

View file

@ -0,0 +1,9 @@
set(TARGET_NAME ice-server)
# setup the project and link required Qt modules
setup_hifi_project(Network)
# link the shared hifi libraries
link_hifi_libraries(networking shared)
link_shared_dependencies()

View file

@ -0,0 +1,18 @@
//
// IceServer.cpp
// ice-server/src
//
// Created by Stephen Birarda on 2014-10-01.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "IceServer.h"
IceServer::IceServer(int argc, char* argv[]) :
QCoreApplication(argc, argv)
{
}

View file

@ -0,0 +1,22 @@
//
// IceServer.h
// ice-server/src
//
// Created by Stephen Birarda on 2014-10-01.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_IceServer_h
#define hifi_IceServer_h
#include <QCoreApplication>
class IceServer : public QCoreApplication {
public:
IceServer(int argc, char* argv[]);
};
#endif // hifi_IceServer_h

27
ice-server/src/main.cpp Normal file
View file

@ -0,0 +1,27 @@
//
// main.cpp
// ice-server/src
//
// Created by Stephen Birarda on 10/01/12.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QtCore/QCoreApplication>
#include <Logging.h>
#include "IceServer.h"
int main(int argc, char* argv[]) {
#ifndef WIN32
setvbuf(stdout, NULL, _IOLBF, 0);
#endif
qInstallMessageHandler(Logging::verboseMessageHandler);
IceServer iceServer(argc, argv);
return iceServer.exec();
}