Raised This Month: $51 Target: $400
 12% 

cURL vs Socket vs SteamTools


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkadietz
Senior Member
Join Date: Jul 2011
Old 12-29-2013 , 21:07   cURL vs Socket vs SteamTools
Reply With Quote #1

Guys could you tell me which of these is the best and most supported. Also i can't find any tutorial how to install it.
__________________
Arkadietz is offline
Skippy
Senior Member
Join Date: Nov 2011
Old 12-29-2013 , 22:57   Re: cURL vs Socket vs SteamTools
Reply With Quote #2

I've only used Socket and SteamTools and I prefer SteamTools over socket. It's easier to understand and use.
__________________
Plugins:
[Any] Aim Menu

Want a TF2 plugin? Feel free to pm me to discuss it.
Skippy is offline
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 12-30-2013 , 13:35   Re: cURL vs Socket vs SteamTools
Reply With Quote #3

We use Socket and Curl in our Plugins. (Selectable)

It's the best option for an admin.
Not need to install anything new.

Can't talk about SteamTools.
I have no experience to code with this extension.
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 12-30-2013 at 13:36.
HSFighter is offline
Send a message via ICQ to HSFighter
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 12-30-2013 , 14:54   Re: cURL vs Socket vs SteamTools
Reply With Quote #4

SteamTools is the preferred extension amongst the majority of us.
__________________
11530 is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 12-30-2013 , 16:39   Re: cURL vs Socket vs SteamTools
Reply With Quote #5

There really isn't a best one, they are not the same and meant to be used for doing different things.
Socket is rather hard to use and requires a lot code, still i prefer it for these reasons
  • It's supported for all games
  • It's stable
  • It's flexible
  • It's fast
  • Lot's of plugins require it -> probably already installed
Curl seems to crash on some servers for unknown reasons, which is why i don't use it anymore.
Stamtools wasn't/isn't? well supported for css when i tried it, simple http requests were slow and the extension occasionally crashed on me.
__________________

Last edited by Impact123; 12-30-2013 at 16:54.
Impact123 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-30-2013 , 17:14   Re: cURL vs Socket vs SteamTools
Reply With Quote #6

Quote:
Originally Posted by Impact123 View Post
There really isn't a best one, they are not the same and meant to be used for doing different things.
Socket is rather hard to use and requires a lot code, still i prefer it for these reasons
  • It's supported for all games
  • It's stable
  • It's flexible
  • It's fast
  • Lot's of plugins require it -> probably already installed
Curl seems to crash on some servers for unknown reasons, which is why i don't use it anymore.
Stamtools wasn't/isn't? well supported for css when i tried it, simple http requests were slow and the extension occasionally crashed on me.
Sadly, SteamTools is only "officially" supported on Team Fortress 2.

I only use it in my plugins because SDKHooks no longer supports game name changing on Source 2009 (or more accurately, SDK2013) games like CS:S and TF2.

SourceMod has an internal extenson called Webternet (the gamedata updater) that is located in extensons/curl in the source code. However, it doesn't have a public API and the public cURL extension isn't based on it. However, it doesn't have a plugin interface...
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 12-30-2013 at 17:15.
Powerlord is offline
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 12-31-2013 , 02:55   Re: cURL vs Socket vs SteamTools
Reply With Quote #7

SteamTools will drop the performance of your server hilariously if you start making requests as often as every 15 seconds. Any pending requests will queue up into infinity and likely tank your server completely after a few minutes. I was recently burnt by this when I replaced some code that previously used the socket ext with SteamTools.

Unfortunately the failure point is not clear here. SteamTools has some terribly inefficient code w/r/t HTTP requests, but the majority of the machinery is implemented in the steamclient library.

If you're not making that many requests, though, it's probably fine.
__________________

Last edited by VoiDeD; 12-31-2013 at 02:56.
VoiDeD is offline
cool_myll
SourceMod Donor
Join Date: Aug 2011
Old 12-31-2013 , 09:23   Re: cURL vs Socket vs SteamTools
Reply With Quote #8

Quote:
Originally Posted by Impact123 View Post
There really isn't a best one, they are not the same and meant to be used for doing different things.
Socket is rather hard to use and requires a lot code, still i prefer it for these reasons
  • It's supported for all games
  • It's stable
  • It's flexible
  • It's fast
  • Lot's of plugins require it -> probably already installed
Curl seems to crash on some servers for unknown reasons, which is why i don't use it anymore.
Stamtools wasn't/isn't? well supported for css when i tried it, simple http requests were slow and the extension occasionally crashed on me.
Socket + FragRadio crashes the server on every restart. I have reported to both socket and fragradio threads but havent found any solutions.
__________________
cool_myll is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 12-31-2013 , 10:05   Re: cURL vs Socket vs SteamTools
Reply With Quote #9

I prefer cURL because its supposed to do many things with send/receive/whatever over 'outside'. Never had any issues with it.
Socket hang my server sometimes (i really dont know why, probably after plugin reloading during request) but yeah, its used in many plugins and seems to be stable if you use it properly.
SteamTools is supported for Source 2009 games, so i dont use this.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-01-2014 , 08:28   Re: cURL vs Socket vs SteamTools
Reply With Quote #10

Honestly, the only thing I use steamtools for is changing gamename, socket for everything else.
Would be nice if a standalone extension or sourcemod native for doing this were added.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 01-01-2014 at 08:29.
friagram is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode