Raised This Month: $ Target: $400
 0% 

[INC] Sockets Forwards


Post New Thread Reply   
 
Thread Tools Display Modes
XAT
Member
Join Date: Jul 2011
Old 09-11-2012 , 16:28   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #41

I'm pretty much interested in this module, so i would try to help you with fixing it.

First of all

Quote:
Originally Posted by Arkshine View Post
"Listen" seems to return always -1, 13 (or 11, don't remember). Probably because connection is closed.
Well, actualy thats becouse you are using port lower than 1024 which is operation allowed only for root.

Secondly, why you are checking hostname in socket_listen if then you are setting it to INADDR_ANY.

It also would be nice to bind port for outgoing connections, same as listening, if possible, if not it could be some of user choice, becouse its choosen randomly every time connection is created.

Also, for some unknown reason under linux, when there is listen socket opened ( or any other socket ) and map has changed, server gets freezed, i'm currently trying to find out why is that.

Last edited by XAT; 09-11-2012 at 16:29.
XAT is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-22-2012 , 04:47   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #42

please fix an error INVALID SOCKET in example ..... cant compile
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
wwzw
Member
Join Date: Feb 2009
Old 10-20-2012 , 20:49   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #43

I used for listen server, I am from a web page through PHP function "fsockopen" access to real-time information in the game.
But a lot of this log
PHP Code:
......
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried to prepare array # 33).
...... 
The largest log hundreds of megabytes...
How can I do?

Last edited by wwzw; 10-20-2012 at 20:50.
wwzw is offline
Old 01-16-2013, 09:14
arqawa
This message has been deleted by arqawa. Reason: problem resolved
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-16-2013 , 09:30   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #44

Quote:
Originally Posted by wwzw View Post
I used for listen server, I am from a web page through PHP function "fsockopen" access to real-time information in the game.
But a lot of this log
PHP Code:
......
L 10/20/2012 15:52:25: [AMXXForwards with more than 32 parameters are not supported (tried ...... 
The largest log hundreds of megabytes...
How can I do?
You read/write in english but you don't understand the error text?

It's clear...
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Netsys
Senior Member
Join Date: Feb 2010
Old 02-27-2013 , 11:04   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #45

I have an error with this plugin https://forums.alliedmods.net/showpo...1&postcount=24 and one that I did

PHP Code:
L 02/27/2013 12:54:52: [METAWARNINGPlugin didn't set meta_result: sockets2_amxx_i386.so:StartFrame()
L 02/27/2013 - 12:54:52: [META] WARNING: Plugin didn'
t set meta_resultsockets2_amxx_i386.so:StartFrame()
L 02/27/2013 12:54:52: [METAWARNINGPlugin didn't set meta_result: sockets2_amxx_i386.so:StartFrame()
L 02/27/2013 - 12:54:52: [META] WARNING: Plugin didn'
t set meta_resultsockets2_amxx_i386.so:StartFrame()
L 02/27/2013 12:54:52: [METAWARNINGPlugin didn't set meta_result: sockets2_amxx_i386.so:StartFrame()
L 02/27/2013 - 12:54:52: [META] WARNING: Plugin didn'
t set meta_resultsockets2_amxx_i386.so:StartFrame()
L 02/27/2013 12:54:52: [METAWARNINGPlugin didn't set meta_result: sockets2_amxx_i386.so:StartFrame()
L 02/27/2013 - 12:54:52: [META] WARNING: Plugin didn'
t set meta_resultsockets2_amxx_i386.so:StartFrame()
L 02/27/2013 12:54:52: [METAWARNINGPlugin didn't set meta_result: sockets2_amxx_i386.so:StartFrame()
L 02/27/2013 - 12:54:52: [META] WARNING: Plugin didn'
t set meta_resultsockets2_amxx_i386.so:StartFrame()
L 02/27/2013 12:54:52: [METAWARNINGPlugin didn't set meta_result: sockets2_amxx_i386.so:StartFrame()
L 02/27/2013 - 12:54:52: [META] WARNING: Plugin didn'
t set meta_resultsockets2_amxx_i386.so:StartFrame() 
I have this version https://forums.alliedmods.net/showpo...4&postcount=36

And with the version of the first post, when I want to connect to a socket_listen who believes in a plugin using a plugin throws me error (15), and if I try to connect using a php page to the server, I connect just fine.
Netsys is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-27-2013 , 11:41   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #46

I don't have Linux so I'm unable to test/debug under that config. I haven't even had time to test and debug under windows because I've been busy with stuff for the past year. I will try to take a look in the near future. If you are able, or anyone else is, feel free to look at the source and recommend any fixes.
__________________
Bugsy is offline
V I R U S
Senior Member
Join Date: Jul 2004
Location: Russia / Germany
Old 08-06-2013 , 18:00   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #47

Still no progress on linux?
__________________
V I R U S is offline
Send a message via ICQ to V I R U S
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-02-2013 , 10:22   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #48

I don't have a linux setup to test on, and it will be too time consuming to have someone test every experimental build for me. If someone with a linux setup has the time and knowledge, please assist.
__________________
Bugsy is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 12-09-2013 , 16:59   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #49

I Believe sockets_hz , is an open source library that allready supports listening sockets on Linux,
http://forums.alliedmods.net/showthread.php?t=60026

You can simple check them, and check your errors in your code.
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 12-12-2013 , 17:42   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #50

Windows:
How is the Socket_TimedOut even works?

I mean, i opened 2 connections i kept them both open and they timed out for no reason? wow?
Also Socket_Close it might by buggy, i mean ok they timed out and it closed them, my client though it sees still an active connection between them



Though when i'm closing the hlds

I Get On each socket
Quote:
[10053] Software caused connection abort

Edit: I'm trying to recompile the socket2.dll but i've messed up everything with the SDKs. Damn... how can i compile it anyway? what i need to do
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))

Last edited by ProIcons; 12-12-2013 at 18:09.
ProIcons is offline
Reply


Thread Tools
Display Modes

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 23:58.


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