C# ConnectServer Source

Results 1 to 24 of 24
  1. #1
    DarkMu wolfulus is offline
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    307Posts

    C# ConnectServer Source

    i coded this yesterday for my emulator, and i'm releasing this piece of code for those which want to know more about C#, sockets, blablabla...

    this isnt 100% working like original, the server % will aways display 0, coz i haven't coded the UDP socket packets (future updates will be for emulator, not official server files, so i dont need to code udp for display emulator's playercount %)

    if someone "update" the code, post it here

    thanks... file is attached, and please, do not remove my team name from it, if you will repost in other place, or change the code


    server list in CsInfo.xml
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Servers>
    	<Server Code="0" Index="0" Address="127.0.0.1" Port="44405" />
    </Servers>
    Code = Server Index
    Index = SubServer Index
    Address and Port is target gameserver info


    file is attached...
    Attached Files Attached Files


  2. #2
    Account Upgraded | Title Enabled! Kudo^ is offline
    MemberRank
    Jul 2007 Join Date
    PortugalLocation
    425Posts

    Re: [Release] C# ConnectServer Source

    Another Great release, thank you :)

  3. #3
    Twilight Mu Owner Shagoon is offline
    MemberRank
    Aug 2005 Join Date
    Bucharest, ROLocation
    1,001Posts

    Re: [Release] C# ConnectServer Source

    If Anyone Needs:
    MIRROR LINK

  4. #4
    DarkMu wolfulus is offline
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    307Posts

    Re: [Release] C# ConnectServer Source

    Quote Originally Posted by Shagoon View Post
    If Anyone Needs:
    MIRROR LINK
    thanks for the mirror

  5. #5
    Account Upgraded | Title Enabled! Tchekler is offline
    MemberRank
    Oct 2006 Join Date
    All-blue, la mer lLocation
    280Posts

    Re: [Release] C# ConnectServer Source

    Quote Originally Posted by Shagoon View Post
    If Anyone Needs:
    MIRROR LINK
    Tanks :) so fast :p

  6. #6
    Valued Member Marin_scp is offline
    MemberRank
    Mar 2006 Join Date
    Inside EAXLocation
    103Posts

    Re: [Release] C# ConnectServer Source

    Man, I was looking upon it, I started learning the C# basics and my first project will be a MU Emulator (Obviously when I learn more complex things), the first time I saw your project in VirtualMU I start being your fan! ^^

  7. #7
    Account Upgraded | Title Enabled! BlackEye is offline
    MemberRank
    Sep 2007 Join Date
    Latvia-DobeleLocation
    733Posts

    Re: [Release] C# ConnectServer Source

    SHAGOON always is first with mirrors! :)

  8. #8
    Proficient Member A.5 is offline
    MemberRank
    Sep 2007 Join Date
    RussiaLocation
    186Posts

    Re: [Release] C# ConnectServer Source

    Woot, very nice piece of emu :D

  9. #9
    [Czt] Coder Team Member noobies is offline
    MemberRank
    Aug 2005 Join Date
    Behind you !!Location
    747Posts

    Re: [Release] C# ConnectServer Source

    nice work man! =)

  10. #10
    DarkMu wolfulus is offline
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    307Posts

    Re: [Release] C# ConnectServer Source

    well, a connect server isn't an "emu", but anyways... i'll use it on the project

  11. #11
    Valued Member ScanX is offline
    MemberRank
    Nov 2004 Join Date
    BrasilLocation
    111Posts

    Re: [Release] C# ConnectServer Source

    Perfect, grateful Wolf.
    Now I am going to my tests

  12. #12
    iNewLegend , Leo123 zolamu is offline
    MemberRank
    Apr 2006 Join Date
    Холон, IsrLocation
    737Posts

    Re: [Release] C# ConnectServer Source

    Thanks Bro

  13. #13
    Apprentice Ignatich is offline
    MemberRank
    Jan 2008 Join Date
    15Posts

    Re: [Release] C# ConnectServer Source

    very hackish :\ still can be interesting for those who want to learn the very basics of mu protocol.

  14. #14
    Account Upgraded | Title Enabled! SkyLinE27 is offline
    MemberRank
    Mar 2007 Join Date
    LatviaLocation
    349Posts

    Re: [Release] C# ConnectServer Source

    Thanks ;)

  15. #15
    Apprentice sontung306 is offline
    MemberRank
    Nov 2006 Join Date
    10Posts

    Re: [Release] C# ConnectServer Source

    Can't open !

  16. #16
    Proficient Member muminek35 is offline
    MemberRank
    Nov 2006 Join Date
    Poland,SkwierzynaLocation
    157Posts

    Re: [Release] C# ConnectServer Source

    looking good. I`m sure i will test it

  17. #17
    DarkMu wolfulus is offline
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    307Posts

    Re: [Release] C# ConnectServer Source

    Quote Originally Posted by sontung306 View Post
    Can't open !
    use visual C# express 2008 to open it

  18. #18
    Member FT1FT1 is offline
    MemberRank
    Jan 2005 Join Date
    VenezuelaLocation
    78Posts

    Re: [Release] C# ConnectServer Source

    I have a recomendation for your project

    Everyone ever involved on server maintenance and deployment is used to have "Services" running.
    Those Services have some advantages:
    - windows resources priority
    - security (login account) can be especified
    - what to do in case of services shoot down
    - system login of each event
    - RPC (windows security protected)
    and a very long list of extra positive things so developers use to release mission critical and long term server based tools compiled as "windows services".

    So why not you?

    The main problem will be "support" on how to install and remove a windows service, but install/uninstall classes can be coded inside the exe so people can attach/dettach the service from the OS as a optional feature.

    U whant me to help with this?... just let me know

  19. #19
    Beep! sandbird is offline
    MemberRank
    Dec 2004 Join Date
    Greece, SalonicaLocation
    284Posts

    Re: [Release] C# ConnectServer Source

    wolfulus can you DC a client from the CS if you want to ?

  20. #20
    DarkMu wolfulus is offline
    MemberRank
    Jul 2006 Join Date
    BrazilLocation
    307Posts

    Re: [Release] C# ConnectServer Source

    Quote Originally Posted by sandbird View Post
    wolfulus can you DC a client from the CS if you want to ?
    if you code it, yes you can, but the current code is a console application, without interface... just a tray icon, with a "hided" console window...



    Quote Originally Posted by FT1FT1 View Post
    I have a recomendation for your project

    Everyone ever involved on server maintenance and deployment is used to have "Services" running.
    Those Services have some advantages:
    - windows resources priority
    - security (login account) can be especified
    - what to do in case of services shoot down
    - system login of each event
    - RPC (windows security protected)
    and a very long list of extra positive things so developers use to release mission critical and long term server based tools compiled as "windows services".

    So why not you?

    The main problem will be "support" on how to install and remove a windows service, but install/uninstall classes can be coded inside the exe so people can attach/dettach the service from the OS as a optional feature.

    U whant me to help with this?... just let me know
    maybe on future updates... i'm not thinking about these things now, just wanting to get it fully functional :]

    yeah, bad english, i know, sorry ;D

  21. #21
    Member FT1FT1 is offline
    MemberRank
    Jan 2005 Join Date
    VenezuelaLocation
    78Posts

    Re: [Release] C# ConnectServer Source

    Another advice:
    Working with a fixed count of connection slots is not resource wise.
    if you are going to work that way you must at least let the server manager to chose how many connections allow as a parameter so your line:
    Code:
    private DtClient[] Clients = new DtClient[100];
    become:
    Code:
    private DtClient[] Clients = new DtClient[globalVariableMaxConnections];
    I will recommend the use of thread pools instead of fixed count

  22. #22
    Game Developer snaity is offline
    MemberRank
    Oct 2005 Join Date
    BrazilLocation
    946Posts

    Re: [Release] C# ConnectServer Source

    Another Project Started by me one year ago coded in C++ if your wanna try here is SVN Repository https://opensvn.csie.org/DareEMU/

  23. #23
    Alpha Member bramdebouvere is offline
    MemberRank
    Aug 2006 Join Date
    BelgiumLocation
    2,409Posts

    Re: [Release] C# ConnectServer Source

    thansk a lot . usefull

  24. #24
    High'nLows 19871986 is offline
    MemberRank
    Sep 2010 Join Date
    istanbulLocation
    802Posts

    Re: C# ConnectServer Source

    thanks a lot
    Last edited by 19871986; 22-09-13 at 11:49 AM. Reason: links died



Advertisement