This site is a testing version, but all data is shared with the live forum.


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

[EXTENSION] Socket (3.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xenland
New Member
Join Date: Nov 2010
Old 11-20-2010 , 00:36   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #1

Probably a stupid question, how would one use this to get the server status using any server side language? (at this point i will learn any language just to get my server status or more precisely the "map name" & "timeleft")

*Note:Serverside meaning php, perl & such

Last edited by xenland; 11-20-2010 at 00:43.
xenland is offline
FunkyLoveCow
Senior Member
Join Date: May 2010
Old 12-02-2010 , 17:34   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #2

How do I get this to work with GET parameters in the URL?

In the example provided with 3.0.1, I am able to download and process forums.alliedmods.net/index.php

However, if I try to download http://forums.alliedmods.net/showthread.php?t=67640 it fails. I've tried on the URL I'd like to process too. If I hit it without parameters it works, but when I add parameters, it fails.

I believe these are the two relevant lines:

Code:
SocketConnect(socket, OnSocketConnected, OnSocketReceive, OnSocketDisconnected, "api.example.com", 80)
Code:
Format(requestStr, sizeof(requestStr), "GET /%s HTTP/1.0\r\nHost: %s\r\nConnection: close\r\n\r\n", "api.php?Type=AllInfo&OFormat=XML", "api.example.com");
PrintToServer(requestStr);
SocketSend(socket, requestStr);
Output to log file:
Code:
GET /api.php?Type=AllInfo&OFormat=XML HTTP/1.0
Host: api.example.com
The file that is download is 0bytes. It should be approximately 13kb. If I hit the URL directly from my browser (or telnet) it works.
FunkyLoveCow is offline
Grognak
SourceMod Donor
Join Date: Jan 2012
Old 04-04-2012 , 17:34   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #3

Quote:
Originally Posted by FunkyLoveCow View Post
How do I get this to work with GET parameters in the URL?
I'm having the same issue. I can download files perfectly, but not if I add ?q='blah' at the end. Is this even possible with Socket?
Grognak is offline
mikeorman
Junior Member
Join Date: Jul 2015
Old 08-26-2015 , 13:25   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #4

this extension is failing to load for some reason.
[12] <FAILED> file "socket.ext.dll": The specified module could not be found.
mikeorman is offline
chora
SourceMod Donor
Join Date: Dec 2010
Location: Brazil
Old 08-26-2015 , 13:55   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #5

Quote:
Originally Posted by mikeorman View Post
this extension is failing to load for some reason.
[12] <FAILED> file "socket.ext.dll": The specified module could not be found.
Which Sourcemod version are you using?
Did you added this extension while server was running?
__________________

chora is offline
TheSpartaPT
New Member
Join Date: Sep 2015
Location: Leiria, Portugal
Old 11-29-2015 , 15:17   I might have a problem IDK
Reply With Quote #6

so, i have installed SMAC on my server with all the banlists included wich are "smac_eac_banlist.smx", "smac_esea_banlist.smx", "smac_kac_banlist.smx", it was giving me this error:

[SM] Unable to load plugin "smac_eac_banlist.smx": Required extension "Socket" file("socket.ext") not running
[SM] Unable to load plugin "smac_esea_banlist.smx": Required extension "Socket" file("socket.ext") not running
[SM] Unable to load plugin "smac_kac_banlist.smx": Required extension "Socket" file("socket.ext") not running

so i thought to myself lets make a research about it and i found this thread, i installed this "socket" that you can download from here and it keeps giving me the error what do i do now ? plz reply with a solution or request for more info ASAP
TheSpartaPT is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 11-29-2015 , 17:50   Re: I might have a problem IDK
Reply With Quote #7

Quote:
Originally Posted by TheSpartaPT View Post
so, i have installed SMAC on my server with all the banlists included wich are "smac_eac_banlist.smx", "smac_esea_banlist.smx", "smac_kac_banlist.smx", it was giving me this error:

[SM] Unable to load plugin "smac_eac_banlist.smx": Required extension "Socket" file("socket.ext") not running
[SM] Unable to load plugin "smac_esea_banlist.smx": Required extension "Socket" file("socket.ext") not running
[SM] Unable to load plugin "smac_kac_banlist.smx": Required extension "Socket" file("socket.ext") not running

so i thought to myself lets make a research about it and i found this thread, i installed this "socket" that you can download from here and it keeps giving me the error what do i do now ? plz reply with a solution or request for more info ASAP
None of those three plugins works anymore the way they were intended to.

At least, their API's were dead 3-6 months ago when I tested them.

So, simply remove those smac_(eac|esea|kac)_banlist.smx files...
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 03-05-2008 , 16:55   Re: [EXTENSION] Socket (2.2.0)
Reply With Quote #8

I'll be really happy if I were able to IRCrelay on my Linux TF2 server.

I hope you get it sussed between you
__________________
Extreme_One is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 03-06-2008 , 02:57   Re: [EXTENSION] Socket (2.2.0)
Reply With Quote #9

The bug is already fixed and it seems to work so far, expect him to release soon
sfPlayer is offline
OziOn
Senior Member
Join Date: Jan 2008
Old 03-09-2008 , 07:02   Re: [EXTENSION] Socket (2.2.0)
Reply With Quote #10

Ehm, where do I put the files from the socket_src.zip file?
__________________

OziOn 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 02:22.


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