Register for your free account! | Forgot your password?

You last visited: Today at 09:59

  • Please register to post and access all features, it's quick, easy and FREE!


[Release] Socket Sample

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
[Release] Socket Sample

Yoo ^^

Found out in one of my studies an not so old socket system, and since i'm not using it anymore (got a new one ;P), its nearly copy+paste, but you can also check somethings if you want tho... It's not the best one, but it works without problems...

ServerSocket.cs:


ClientSocket.cs:

Initialization method...
If you don't like it, just leave it... I'm not going to reply to stupid posts....
Cya ;P



12tails is offline  
Thanks
1 User
Old 04/02/2012, 23:41   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,311
... why thread per client?

You're running mostly async and yet have a thread attached to each client object.

Non scalable <_<


pro4never is offline  
Thanks
1 User
Old 04/03/2012, 01:06   #3
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,072
Received Thanks: 3,395
Quote:
Originally Posted by pro4never View Post
... why thread per client?

You're running mostly async and yet have a thread attached to each client object.

Non scalable <_<
You know... I typed up something similar to that... but he doesn't want feedback, so we should leave him alone and let his source go to pot (I guess).
Spirited is offline  
Old 04/03/2012, 05:04   #4
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
Quote:
Originally Posted by Fаng View Post
You know... I typed up something similar to that... but he doesn't want feedback, so we should leave him alone and let his source go to pot (I guess).
If you show me where i did say that, i give up coding....

@pro4ever
Yeah, that's why i changed the codes long time ago ;P like some 4 months i guess... there are like 100 ways of doing it....


12tails is offline  
Old 04/03/2012, 05:42   #5
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 320
@Fang i know 12talis and hes not that type,
And he did say its old copy + paste, not like he went over it he most likely already fixed hes mistakes on he's newer one.
-Shunsui- is offline  
Old 04/03/2012, 06:12   #6
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,072
Received Thanks: 3,395
Quote:
Originally Posted by 12tails View Post
If you show me where i did say that, i give up coding....

@pro4ever
Yeah, that's why i changed the codes long time ago ;P like some 4 months i guess... there are like 100 ways of doing it....
I'm not gonna troll this thread and argue with you. "If you don't like it, just leave it" does sound like you don't want people's feedback though. That's all I'm saying.
Spirited is offline  
Old 04/03/2012, 13:10   #7
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,293
Received Thanks: 919
Quote:
Originally Posted by Fаng View Post
I'm not gonna troll this thread and argue with you. "If you don't like it, just leave it" does sound like you don't want people's feedback though. That's all I'm saying.
And what exactly is wrong with that? He obviously doesn't want any feedback on something that he doesn't use nor care about as he already has a better and improved socket system.
Kiyono is offline  
Old 04/03/2012, 13:16   #8
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,124
Received Thanks: 2,503
I would recommend that no one ever seriously consider using this for a production server, 1 thread per client as Pro stated doesnt scale well, you'll have all sorts of cross threading issues after a handful of clients, perhaps more if your very lucky.
Korvacs is offline  
Old 04/05/2012, 02:32   #9
 
elite*gold: 0
Join Date: May 2008
Posts: 166
Received Thanks: 4
how ???
abdomiky7 is offline  
Old 04/05/2012, 04:05   #10
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,072
Received Thanks: 3,395
Quote:
Originally Posted by abdomiky7 View Post
how ???
Bend over

Spirited is offline  
Old 04/07/2012, 21:16   #11
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 783
One word. CPU-overload.

Async-handlers doesn't require another thread. That's why thei're async, unlike just synchronous.
I don't have a username is offline  
Thanks
1 User
Old 04/08/2012, 00:13   #12
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
AsyncEventArgs work just wonderfully ^^


12tails is offline  
Reply



« CAST-128 (CAST5) Cipher Feedback | [Release]Edited Reg Page for Hellmouth source »



All times are GMT +1. The time now is 09:59.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.