[RELEASE] Basic SocketLibrary

05/06/2010 11:05 Basser#1
Also part of my dump on this forum, I hope someone can use this for mainly learn purposes.


Release Notes:
This SocketLibrary (.dll) can be used for any purposes. From something big like a complete MMORPG, to something as small as a chat.

Version(s):
0.1 - The first release, not many extras yet, just a basic, but easy library to set up a socket system.

Downloads:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

Contents of the Library:
A basic Socket system.
- It will listen to a certain port, and receive data from it.
- It will not handle the data yet, because you need to add that part, I cannot know what encryption/decryption you need, nor can I know what the packet processor should do.
- It can send packets back to the persons connected to it. (No encryption added of course.)
- It is very easy to create this into a nice, complete socket system.
- It will pretty much describe all mistakes I ever received with it.

How to use it?
Simply make a new thread Enabling the Socket Sys.
Code:
SocketSys _socketsys = new SocketSys(*Arguments);
new Thread(_socketsys.Enable).Start();
this code snippet should explain how to use this library.

Feedback?
Please tell me when you need help, when you want me to add a feature, or when you want to add a feature yourself!
I would also like to know what you guys think could be better, what you like, and whatsoever!

And as always, thanks are appreciated.
05/06/2010 11:16 ImmuneOne#2
Creating a THREAD instance to start a socket? Please explain that.
05/06/2010 11:18 Arcо#3
Double thread?
[Only registered and activated users can see links. Click Here To Register...]
05/06/2010 11:26 Nullable#4
SOCK_STREAM doesn't go with UDP mode afair. Also a thread per client model is cumbersome, async sockets model is the way to go
05/06/2010 11:53 Basser#5
Quote:
Originally Posted by .Arco View Post
Double thread?
[Only registered and activated users can see links. Click Here To Register...]
Oh I didn't realize that.
05/06/2010 12:04 Korvacs#6
Duplicate Release.

Closed.