mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 12:10:43 +00:00
20 lines
430 B
C++
20 lines
430 B
C++
#include "server.h"
|
|
#include "xmlrpcserver.h"
|
|
|
|
#include <QHostAddress>
|
|
|
|
Server::Server( const QString &address, quint16 port, QObject *parent )
|
|
: QObject( parent )
|
|
{
|
|
XmlRpcServer *srv = new XmlRpcServer;
|
|
if ( srv->listen( QHostAddress( address ), port ) ) {
|
|
srv->registerSlot( this, SLOT( testFunc(QVariant) ) );
|
|
}
|
|
}
|
|
|
|
|
|
QVariant Server::testFunc( const QVariant ¶m )
|
|
{
|
|
return param;
|
|
}
|