- Joined
- Jun 23, 2010
- Messages
- 2,323
- Reaction score
- 2,195
Wait, You use 2 types of programs for one server?
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!Actually, the bottom one is the output console for my debugger/packet logger.Wait, You use 2 types of programs for one server?
Thanks for the encouragementSeems like a great project! Glad to see people actually doing some serious server development that the community can watch come together or even participate in.
Thanks and great luck to you!
C++ has got to be tedious to program in compared to a higher level language. Good luck, I'm sticking with C#.
Especially if you're using a framework like Qt, That's a common misconception about C++. It is low level in that it compiles directly to assembly, and doesn't use any sort of virtual machine, but it also has a lot of high level APIs you can download/include.But.. what's a higher level language in your opinion? In my opinion, C/C++ is pretty damn high level..
void Protocol::attachToServer(ServerCore* _c, quint16 port){
serve = new QTcpServer(this);
serve->listen(QHostAddress::Any, port);
_core = _c;
connect(serve, SIGNAL(newConnection()), this, SLOT(newConnectionFromServer()));
printf("Listening for connections on port %i. Language: %s\n", port, ConfigurationCore::get("lang.langstr").toStdString().c_str());
}
SocketTracker::SocketTracker(Protocol* _p, QTcpSocket* _s, Client* _c, ServerCore* _sc)
{
prot = _p;
socket = _s;
client = _c;
core = _sc;
printf("Client connected.\n");
connect(_s, SIGNAL(readyRead()), this, SLOT(readyRead()));
connect(_s, SIGNAL(disconnected()), this, SLOT(disconnected())); // is this ok? I'm bad with connections
connect(this, SIGNAL(dataToWrite(QByteArray)), this, SLOT(writePassThru(QByteArray)), Qt::QueuedConnection);
}
SocketTracker::SocketTracker(Protocol* _p, QTcpSocket* _s, Client* _c, ServerCore* _sc)
{
prot = _p;
socket = _s;
client = _c;
core = _sc;
printf("Client connected.\n");
connect(_s, SIGNAL(disconnected()), this, SLOT(readyRead()));
connect(this, SIGNAL(dataToWrite(QByteArray)), this, SLOT(writePassThru(QByteArray)), Qt::QueuedConnection);
}