Raised This Month: $ Target: $400
 0% 

[REQ-TUT] Socket


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Adryyy
Member
Join Date: Oct 2011
Old 01-30-2017 , 13:52   [REQ-TUT] Socket
Reply With Quote #1

I need a tutorial for socket, to read a code from a php file.

I tried https://forums.alliedmods.net/showthread.php?t=41913 but not read code
Adryyy is offline
Send a message via Yahoo to Adryyy Send a message via Skype™ to Adryyy
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 01-30-2017 , 14:37   Re: [REQ-TUT] Socket
Reply With Quote #2

There are ways that will help you communicating through HTTP.
Include: HTTP by Bugsy.
API: HTTP:X by me.
API: HTTP Downloader by Bentski.
Module: Curl by Polarhigh (or Levenus Supremus).
Module: Threaded HTTP by joropito.
__________________

Last edited by Black Rose; 01-30-2017 at 14:50.
Black Rose is offline
Adryyy
Member
Join Date: Oct 2011
Old 01-30-2017 , 15:37   Re: [REQ-TUT] Socket
Reply With Quote #3

Thanks..Idk why appear this error '
L 01/30/2017 - 221:56: -------- Mapchange to de_dust2 --------
L 01/30/2017 - 221:56: [AMXX] Plugin "test.amxx" failed to load: Plugin uses an unknown function (name "HTTPX_GetData") - check your modules.ini.' ??
Adryyy is offline
Send a message via Yahoo to Adryyy Send a message via Skype™ to Adryyy
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-30-2017 , 15:52   Re: [REQ-TUT] Socket
Reply With Quote #4

Install the httpx.amxx
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 01-30-2017 , 15:52   Re: [REQ-TUT] Socket
Reply With Quote #5

The HTTP:X plugin must be loaded in your server.

ninja'd
__________________

Last edited by gabuch2; 01-30-2017 at 15:52.
gabuch2 is offline
Adryyy
Member
Join Date: Oct 2011
Old 01-30-2017 , 16:00   Re: [REQ-TUT] Socket
Reply With Quote #6

Oh..2 plugins?? No..i will use http2. Thanks!

Last edited by Adryyy; 01-30-2017 at 16:00.
Adryyy is offline
Send a message via Yahoo to Adryyy Send a message via Skype™ to Adryyy
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 01-31-2017 , 08:42   Re: [REQ-TUT] Socket
Reply With Quote #7

Two plugins instead of one is almost always a better way.

Remember, HTTP2 hasn't been updated since I released HTTP:X. I can't remember if there are bugs that I have fixed since. I don't think so.
It's easier for plugin creators to use an API since you can just copy the requires lines from the include to avoid local compilation and copying the complete include. Not very likely but you may run into conflicts when using an include in a very active way like HTTP/HTTP2. Running several plugins with such includes also just adds to the stack. It's better to que everything in one place, enable cvars, et.c.
Also. If there are bugs in the API you don't need to recompile the plugin with an updated include. HTTP:X will even update itself if a new version is available.
Not that there are any bugs. ;)

So if you're planning to release your plugin publically and you're deciding between HTTP2 vs. HTTP:X. I strongly suggest X.
__________________
Black Rose 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 03:05.


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