BrickEmulator [C#] Pooling Sockets + From Scratch

Page 6 of 38 FirstFirst 123456789101112131416 ... LastLast
Results 76 to 90 of 558
  1. #76
    CloudCMS Developer blackpol is offline
    MemberRank
    Aug 2006 Join Date
    The NetherlandsLocation
    232Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    @cecer1 Stricter programming is not very dynamic but it is possible with OOP :)

  2. #77
    Occasional Visitor Cecer is offline
    MemberRank
    Aug 2006 Join Date
    EnglandLocation
    743Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by blackpol View Post
    @cecer1 Stricter programming is not very dynamic but it is possible with OOP :)
    I said some of the features of OOP. Mainly hierarchical types.

  3. #78
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    is test hotel back on? I wanna test this:)

  4. #79
    Enthusiast djkevino is offline
    MemberRank
    May 2011 Join Date
    Someren, NetherLocation
    34Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    it looks really nice wichard. keep up the work. i want it already :).

  5. #80
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    I was on holyday this week, im conitinue so fast as i can.

    Nyan power <3

    ---------- Post added at 12:23 PM ---------- Previous post was at 12:16 PM ----------

    Quote Originally Posted by cecer1 View Post
    Optimisation:
    PHP Code:
            public void HandlePacket(Request RequestClient Client)
            {
                if (!
    IDS.ContainsKey(Request.Id) &&  !Request.Packet.Equals("<policy-file-request/>" +  Convert.ToChar(0)))
                {
                    return;
                }

                if (
    Request.Packet.Equals("<policy-file-request/>" Convert.ToChar(0)))
                {
                    
    SendPolicy(Client);
                    return;
                }

                
    IDS[Request.Id].Invoke(Client);
            } 
    PHP Code:
           public void HandlePacket(Request RequestClient Client)
            {
                if (!
    IDS.ContainsKey(Request.Id))
                {
                    if(
    Request.Packet.Equals("<policy-file-request/>\0"))
                        
    SendPolicy(Client);
                    return;
                }
                
    IDS[Request.Id].Invoke(Client);
            } 
    Less ifs, less concatenating and less code.



    How exactly does that improve stability may I ask?
    /facepalm ifs, oy fail hardly.

  6. #81
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Any chance you can upload BrickDB for me? I want to make my CMS compatible with it :)

  7. #82
    Occasional Visitor Cecer is offline
    MemberRank
    Aug 2006 Join Date
    EnglandLocation
    743Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by wichard View Post
    /facepalm ifs, oy fail hardly.
    I was only offering some friendly advice...

    I have done a few benchmarks:
    Concatenation:
    PHP Code:
    "<policy-file-request/>" Convert.ToChar(0
    Escaping:
    PHP Code:
    "<policy-file-request/>\0" 
    Escaping is 87 times faster than concatenation when these two snippets are compared.

    P.S. Could you explain how the converter makes it more stable?
    I know blackpol has tried to explain, but it doesn't add up.

  8. #83
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Im busy with rooms:

    Pastebin code: vritualRoom - Pastebin.com

  9. #84
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Blatently uses the ion/deltar framework, however I wish you good luck with dis.

  10. #85
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    TryEnterRoom :D

    TryEnterRoom - Pastebin.com

  11. #86
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Pathfinder finished: BrickEmulator Pathfinder - Pastebin.com

    ---------- Post added at 02:17 PM ---------- Previous post was at 01:02 PM ----------

    Updates:



  12. #87
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by wichard View Post
    Pathfinder finished: BrickEmulator Pathfinder - Pastebin.com

    ---------- Post added at 02:17 PM ---------- Previous post was at 01:02 PM ----------

    Updates:


    I love the way the console is really clean - only shows the needed stuff :) When someone logs in does it just say User (?) has logged in. and leave it at that? Hopefully yes :')

  13. #88
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Console Details: [Debug With Requests, you can disable Showing Requests]


    Pathfinder shit:

  14. #89
    Account Upgraded | Title Enabled! DJAlexxstyle is offline
    MemberRank
    Feb 2008 Join Date
    341Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    I personally hate custom pathfinder implementations (I prefer the A* one), but I have to admit your is very clean, and I like it ;)

    PS: Nice the choice of using LINQ: when will other developers learn it makes things extremely easier? :D

  15. #90
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by DJAlexxstyle View Post
    I personally hate custom pathfinder implementations (I prefer the A* one), but I have to admit your is very clean, and I like it ;)

    PS: Nice the choice of using LINQ: when will other developers learn it makes things extremely easier? :D
    This emu uses much LINQ, (Navigator)

    I order with it (Achievements, Rooms)

    Btw this pathfinder is Lightweight, and never tested. But it will work :D



Advertisement