[Release] Socket Sample

04/02/2012 17:55 12tails#1
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
04/02/2012 23:41 pro4never#2
... why thread per client?

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

Non scalable <_<
04/03/2012 01:06 Spirited#3
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).
04/03/2012 05:04 12tails#4
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....
04/03/2012 05:42 -Shunsui-#5
@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.
04/03/2012 06:12 Spirited#6
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.
04/03/2012 13:10 Kiyono#7
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.
04/03/2012 13:16 Korvacs#8
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.
04/05/2012 02:32 abdomiky7#9
how ???
04/05/2012 04:05 Spirited#10
Quote:
Originally Posted by abdomiky7 View Post
how ???
Bend over

04/07/2012 21:16 I don't have a username#11
One word. CPU-overload.

Async-handlers doesn't require another thread. That's why thei're async, unlike just synchronous.
04/08/2012 00:13 12tails#12
AsyncEventArgs work just wonderfully ^^