Welcome to the RaGEZONE - MMORPG development forums.

[C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

This is a discussion on [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0) within the Habbo Releases forums, part of the Habbo Hotel category; Eh I'm getting too lazy to write anymore but basically: * You should really stop using 'switch-case' for network data ...

Page 7 of 12 FirstFirst 123456789101112 LastLast
Results 91 to 105 of 166
  1. #91
    Gone
    Rank
    Alpha Member
    Join Date
    Feb 2008
    Location
    Cuba
    Posts
    2,156
    Liked
    375

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Click
    Eh I'm getting too lazy to write anymore but basically:
    * You should really stop using 'switch-case' for network data and use delegates or a reactor pattern instead.
    * Really should get a mod to move this thread to developments.

    I had other things in mind but my A.D.D. seems to be horrible.

  2. #92
    Member
    Rank
    Member
    Join Date
    May 2011
    Location
    Canadia Land
    Posts
    91
    Liked
    62

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Quote Originally Posted by Moogly View Post
    * You should really stop using 'switch-case' for network data and use delegates or a reactor pattern instead.
    Is there any reason for this other then it looks "nicer"? I don't understand how something like that would cause anything but more un-needed CPU instructions...

    It's just not practical for this project.



    Edit: Also, for some reason I can't seem to edit the title of the thread any more D:
    Last edited by Aerospark; 09-07-11 at 05:10 AM.

  3. #93
    ┌∩┐(◣_◢)┌∩
    Rank
    Alpha Member
    Join Date
    Jun 2008
    Location
    Quebec
    Posts
    2,128
    Liked
    176

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    wow dats awesome news, habbo on linux ubuntu... who would of thought. well when your a bit further in this project, may i post this into my linux listings?
    Last edited by Omnija; 09-07-11 at 03:52 AM.

    -o)
    /\\
    _\_V
    The Penguin is "ALWAYS WATCHING".. HEHE




  4. #94
    Atlantica EMU Developer
    Rank
    Member +
    Join Date
    Jul 2008
    Location
    HoloWS - German
    Posts
    323
    Liked
    18

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Now I need and loader maker, or an prehosted one ..

    YAAAAYYY <3
    RaGEZONE is my love <3
    Germany rocks (:
    I am on donkjams cool list *__*
    Gimme a NO for mcmsi

  5. #95
    Developer
    Rank
    Alpha Member
    Join Date
    Apr 2007
    Location
    Havana, Cuba
    Posts
    2,144
    Liked
    1101
    Gamertag: j0nteh

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Hello. I've seen your server and I was wondering if you would like my hotel (ZapHotel.net) to sponsor you? Includes 24/7 hosting of your test-server.

    Jonty
    If you need a really good host with great support....

  6. #96
    Gone
    Rank
    Alpha Member
    Join Date
    Feb 2008
    Location
    Cuba
    Posts
    2,156
    Liked
    375

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Quote Originally Posted by Aerospark View Post
    Is there any reason for this other then it looks "nicer"? I don't understand how something like that would cause anything but more un-needed CPU instructions...

    It's just not practical for this project.



    Edit: Also, for some reason I can't seem to edit the title of the thread any more D:
    "The reactor design pattern is an event handling pattern for handling service requests delivered concurrently to a service handler by one or more inputs. The service handler then demultiplexes the incoming requests and dispatches them synchronously to the associated request handlers."

    It's basically a concurrency design thing in simple words.

    Reactor pattern - Wikipedia, the free encyclopedia

  7. #97
    I'm an asshole eat me out
    Rank
    Gamma
    Join Date
    Apr 2010
    Location
    Corporal USA
    Posts
    3,675
    Liked
    1522
    Gamertag: CobeLeDev PSN ID: COBEx9 Steam ID: CobeLeGamer

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Quote Originally Posted by Jontycat View Post
    Hello. I've seen your server and I was wondering if you would like my hotel (ZapHotel.net) to sponsor you? Includes 24/7 hosting of your test-server.

    Jonty
    Stop trying to steal and rip people's emulators.. You tried to do it to Alex && PeHump, now you're trying to do it to this guy!
    habbo4java, anyone?

  8. #98
    Registered
    Rank
    Member
    Join Date
    Jul 2011
    Location
    Ontario, Canada
    Posts
    17
    Liked
    17

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Quote Originally Posted by Moogly View Post
    "The reactor design pattern is an event handling pattern for handling service requests delivered concurrently to a service handler by one or more inputs. The service handler then demultiplexes the incoming requests and dispatches them synchronously to the associated request handlers."

    It's basically a concurrency design thing in simple words.

    Reactor pattern - Wikipedia, the free encyclopedia
    What you're suggesting we can't really implement right now, I understand where you're coming from but it seems like you don't have a full grasp on how we've implemented most of the client and packet handling so far, or even how C++ code works to an extent...

    I don't know how much C++ you know, or if you understand Qt's Signal/Slot system, so I don't want to waste my time explaining how everything works right now, but don't worry because we're optimizing sections of the code as we go. Right now the main goal is to get everything implemented!

    Thanks for your suggestion tho.

  9. #99
    Ugiox Loperazr
    Rank
    Subscriber
    Join Date
    Jun 2011
    Location
    Southampton
    Posts
    1,817
    Liked
    351
    PSN ID: Z_ZayD3r_Z

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Thanks for this. Greatly appreciated
    regards,
    zMagenta

  10. #100
    Member
    Rank
    Member
    Join Date
    May 2011
    Location
    Canadia Land
    Posts
    91
    Liked
    62

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Hey all, Just wanted to let you guys know: I'm leaving to go camping today, so development will be halted for about a week. I plan on resuming when I get back. :)

    You may receive an update from Ktae while I'm gone though.

  11. #101
    My title is enabled
    Rank
    Member +
    Join Date
    Sep 2010
    Posts
    285
    Liked
    36

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    This is made in QT? Wow!

  12. #102
    Registered
    Rank
    Member
    Join Date
    Jul 2011
    Location
    Ontario, Canada
    Posts
    17
    Liked
    17

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    I'm actually going to be developing my SWF Resource Editor full time for the next 3 or so days, so unfortunately there won't be any server updates for a while. Feel free to checkout my resource editor in the meantime, I'm taking feature requests right now.

  13. #103
    Infraction Banned
    Rank
    Member
    Join Date
    Jul 2011
    Posts
    33
    Liked
    4

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Good Job :P

  14. #104
    Banned
    Rank
    Banned
    Join Date
    Jul 2011
    Location
    Australia
    Posts
    20
    Liked
    0

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Lol what is black bird??
    Phoenix is better!!!!!!!!!!

  15. #105
    Member
    Rank
    Member
    Join Date
    May 2011
    Location
    Canadia Land
    Posts
    91
    Liked
    62

    Re: [C++ (Qt)][v9-v18?][Multi-platform] NexusServer (Updated to v1.2.0)

    Hey everyone, I'm back from camping and development will now resume.

    I'm starting to implement the flash (r63) protocol, but I've hit an odd problem very early on. I've also almost finished implementing room search, then I'm moving on to private room categories.

    The issue I'm having with the Flash client is nothing happens after I send the cross-domain policy. I remember there being some sort of weird disconnect-reconnect thing when I was programming my Java connection API, but I can't seem to figure out how it actually works. I've looked through the Uber source, and it doesn't seem to be doing anything special here.

    Here is the current source of flashclient.cpp, it should give you a look into the problem:
    PHP Code:
    #include "flashclient.h"
    #include <QTcpSocket>

    FlashClient::FlashClient(QObject *parent, QTcpSocket* sock) :
    QObject(parent) {
        socket = sock;
        socket->setParent(this); // change the parent so when this client is detroyed, the socket goes with it
        connect(sock, SIGNAL(readyRead()), this, SLOT(gotPacket()));
        connect(sock, SIGNAL(disconnected()), this, SLOT(deleteLater()));
    }


    void FlashClient::gotPacket() {
        buffer += socket->read(socket->bytesAvailable());

        //qDebug() << "CLIENT->SERVER: " << packet << "\n";
        printf("FLC: %s\n", QString(buffer).toStdString().c_str());
        if(buffer.at(0) == '<'){
            QString CDMP = QString("<?xml version=\"1.0\"?>\r\n<!DOCTYPE cross-domain-policy SYSTEM \"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd\"><cross-domain-policy>\r\n<allow-access-from domain=\"*\"/>\r\n</cross-domain-policy>\r\n\001");
            
    socket->write(CDMP.toStdString().c_str());
            
    socket->flush();
            
    //socket->close(); // disconnecting the client doesn't help
            
    printf("Sent policy file!\n");
        }
        
    }
    The client requests the policy file, the server sends it, then nothing.

    If anyone knows anything about how the flash client handles the cross-domain policy crap, let me know!
    Last edited by Aerospark; 15-07-11 at 11:16 PM.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •