BrickEmulator [C#] Pooling Sockets + From Scratch

Page 11 of 38 FirstFirst ... 34567891011121314151617181921 ... LastLast
Results 151 to 165 of 558
  1. #151
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

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

    Pooling works with AsyncCallback(s).

  2. #152
    Lurking since '06 1ntel is offline
    MemberRank
    Jul 2006 Join Date
    401Posts

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

    Quote Originally Posted by wichard View Post
    Pooling works with AsyncCallback(s).
    All Callbacks are pooled through a delegate void using the System Thread Pool, manual work is queued by ThreadPool.QueueUserWorkItem..

    Creating threads on there own is not pooling & never use thread.sleep its a bad habit, instead use a timer with a timer call back and reset events against the pool to perform timed work, a timer on its own uses the thread that spawned the timer and not the pool so don't get confused by this.

  3. #153
    Retired maritnmine is offline
    MemberRank
    May 2007 Join Date
    North KoreaLocation
    1,103Posts

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

    Quote Originally Posted by wichard View Post
    Pooling works with AsyncCallback(s).
    That's called Asyncronous sockets ;) All the servers out got that today :)

    - Martin

  4. #154
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

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

    smtp update: Its now possible to use TLS.
    So every smtp server should work even hotmail(tested).

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

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

    I'm making sockets better without pooling, and mysqlreactor better without pooling. You will see. SocketHandler will hold up to 100,00,00 users <3.

  6. #156
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,476Posts

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

    Quote Originally Posted by maritnmine View Post
    That's called Asynchronous sockets ;) All the servers out got that today :)

    - Martin
    Asynca-whachamacha?

    Is there any short way of saying it?

  7. #157
    Apprentice uncodex is offline
    MemberRank
    Aug 2011 Join Date
    19Posts

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

    Good Luck with it :)
    Posted via Mobile Device

  8. #158
    Proficient Member Marlon Colhado is offline
    MemberRank
    Jan 2009 Join Date
    BrazilLocation
    178Posts

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

    Joopie Make groups and homes, and when the two go out? Emu and CMS? Forecast?

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

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


  10. #160
    Retired maritnmine is offline
    MemberRank
    May 2007 Join Date
    North KoreaLocation
    1,103Posts

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

    Quote Originally Posted by wichard View Post
    I'm making sockets better without pooling, and mysqlreactor better without pooling. You will see. SocketHandler will hold up to 100,00,00 users <3.
    Nah, doubt that. Having 10E6 users is a unrealistic number. With this large amount there are other considerations which needs attention, like the database and network capacity. I don't think the .NET platform can support this much users. And if you are using non-async sockets, you are going to get a huge lagg, since then the server has to wait for the data to be sent instead of moving it to the threadpool ;)

    Those application which users non-async sockets are most likely server applications which is only ment for one user. New platforms like Silverlight does not support non-async sockets to avoid lagg in the UI-Thread. Read more of this on MSDN if you are in doubt :)

    - Martin

  11. #161
    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 maritnmine View Post
    Nah, doubt that. Having 10E6 users is a unrealistic number. With this large amount there are other considerations which needs attention, like the database and network capacity. I don't think the .NET platform can support this much users. And if you are using non-async sockets, you are going to get a huge lagg, since then the server has to wait for the data to be sent instead of moving it to the threadpool ;)

    - Martin
    Be patient, im using AsyncCallbacks. But these sockets Are huge.

  12. #162
    Retired maritnmine is offline
    MemberRank
    May 2007 Join Date
    North KoreaLocation
    1,103Posts

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

    Quote Originally Posted by wichard View Post
    Be patient, im using AsyncCallbacks. But these sockets Are huge.
    In amount of lines?
    Im having my socket as own project in VS =D

    - Martin

    ---------- Post added at 11:28 AM ---------- Previous post was at 10:26 AM ----------

    Quote Originally Posted by Quackster View Post
    Asynca-whachamacha?

    Is there any short way of saying it?
    Asyc and non-async sockets ;)

    - Martin

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

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

    Im currently busy with FriendStreaming, seems good.

    ---------- Post added at 01:07 PM ---------- Previous post was at 12:17 PM ----------

    Finished


  14. #164
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

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

    Quote Originally Posted by wichard View Post
    Im currently busy with FriendStreaming, seems good.

    ---------- Post added at 01:07 PM ---------- Previous post was at 12:17 PM ----------

    Finished

    Do so it says ... minute(s) ago, cuz you can't say 1 minutes....

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

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

    Quote Originally Posted by SplitoX View Post
    Do so it says ... minute(s) ago, cuz you can't say 1 minutes....
    I'm pretty sure yes... Cause it's not so hard to use a DateTime, and from what I've seen, wichard is a pretty good coder ;)



Advertisement