Sign in to follow this  

My C++ wrapper for TCP sockets

This topic is 3545 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Thanks for letting us know. However, it would be great if you can answer the following question:

Why should someone use this library instead of one of the many mature libraries that already support the same thing?

Do you have better documentation? Better performance? Giving out English muffins? Something else?

Share this post


Link to post
Share on other sites
Quote:
Original post by hplus0603Giving out English muffins?


Oo, that would be lovely xD

I think its nice you build a library and want it to share :), even if other libraries are better...you have to start somewhere...you're further then me :P. Keep it up :)

Share this post


Link to post
Share on other sites
Quote:
Original post by hplus0603
Thanks for letting us know. However, it would be great if you can answer the following question:

Why should someone use this library instead of one of the many mature libraries that already support the same thing?

Do you have better documentation? Better performance? Giving out English muffins? Something else?


Another person with a fetish for english muffins... I'm english, bet you're not :P

Same questions as hplus0603 ^^

Share this post


Link to post
Share on other sites
Quote:
Original post by hplus0603
Why should someone use this library instead of one of the many mature libraries that already support the same thing?


I found all those mature libraries to be very heavy in the sense they bring too much high level functionality along with the basic functionality, this is why I decided to write my own simple wrapper on sockets API. I thought the project main page states this clearly?

To be honest, I tried to create a C++ analog of SDL_net. So, it has almost the same simple interface but in C++.
Firstly I did a C++ wrapper above SDL_net but I had some strange crash when using select() with it (SDLNet_CheckSockets) in Windows (mingw). Trying to find the bug I dug into SDL_net sources and found that I could write my own C++ wrapper above sockets API and it will be easier to find this bug. Eventually, I can't say I found this bug, but I found that in Windows select() sometimes return nonzero value indicating number of active sockets, but it actually does not flag any sockets in fd_set, this caused the crash in my program. I did some workaround for this in my wrapper...

I do not try to force anyone to use it, but how can I also let people know about my project instead of posting it to the forums? Maybe someone will be interested, maybe not.

Share this post


Link to post
Share on other sites
I think it's great that you have taken this route and are confident enough in it to post about it here :).

Sometimes it is more effective to start again than use a library which does a lot more than what you need.

Share this post


Link to post
Share on other sites
lol its wonderful !
but i my original codes costs just arround 5 lines not 6kbyte of code.
anyway i think its better then some other libraries.
why i think its better ? cause its little then other libs and codes looks wery stable for first time use.

Share this post


Link to post
Share on other sites
Thanks, Excito, that's a much better explanation. In general, when you post a link, you should post that kind of explanation with the link, to give people help in deciding whether it's worth their time or not.

Quote:
Another person with a fetish for English muffins


I think that's due to a current advertising campaign by the Geico insurance company in the US. They have a talking animal describing how well the Geico people will take care of you -- they'll even give you an English muffin. Then he takes it back saying "that's a dramatization, of course," which cleverly negates EVERYTHING he said, not just the muffin.

Hence, English Muffin == Stupid Advertising.

Share this post


Link to post
Share on other sites
Quote:
Original post by hplus0603
Why should someone use this library instead of one of the many mature libraries that already support the same thing?

Can you please list them?

Share this post


Link to post
Share on other sites
Quote:
Original post by shurcool
Quote:
Original post by hplus0603
Why should someone use this library instead of one of the many mature libraries that already support the same thing?

Can you please list them?


He already did in Forum FAQ.



edit: clickify FAQ link.


[Edited by - hplus0603 on April 4, 2008 1:53:15 PM]

Share this post


Link to post
Share on other sites

This topic is 3545 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this