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

[INC] Sockets Forwards


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-15-2012 , 11:55   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #21

Anyone willing to test on Linux (thanks Arkshine)? Bueller?
__________________

Last edited by Bugsy; 04-15-2012 at 12:30.
Bugsy is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 05-05-2012 , 11:07   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #22

I will,
but gimme some code to test its functionality, thx.
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-05-2012 , 16:24   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #23

Quote:
Originally Posted by ProIcons View Post
I will,
but gimme some code to test its functionality, thx.
Look at my above post.
__________________

Last edited by Bugsy; 05-05-2012 at 16:25.
Bugsy is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 05-05-2012 , 17:24   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #24

=Code Analysis=
Code:
PHP Code:
#include <amxmodx>
#include sockets2.inc

const TEST_PORT 234;

new 
g_Socket;

public 
plugin_init() 
{
    
register_concmd"Test" "QuickTest" );
    
register_concmd"Connect" "TestConnect" );
    
register_concmd"Listen" "TestListen" );
    
register_concmd"SendData" "TestSend" );
}

public 
QuickTest()
{
    new 
iError;
    new 
iSocket socket_open"www.google.com" 80 SOCKET_TCP iError );
    
    
server_print"Connecting on=%d Error=%d" iSocket iError );
}

public 
TestConnect()
{
    new 
szIP16 ] , iError;
    
get_user_ipszIP charsmaxszIP ) , );
    
    
g_Socket socket_openszIP TEST_PORT SOCKET_TCP iError );
    
    
server_print"Connecting on=%d Error=%d" g_Socket iError );
}

public 
TestListen()
{
    new 
szIP16 ] , iError iSocket;
    
get_user_ipszIP charsmaxszIP ) , );

    
iSocket socket_listenszIP TEST_PORT SOCKET_TCP iError ); 
    
    
server_print"Listening on=%d Error=%d" iSocket iError );
}

public 
TestSend()
{
    
server_print"Sending data on=%d" g_Socket );
    
socket_sendg_Socket "Hello there" 12 ); 
}

public 
Socket_ConnectediSocket )
{
    
server_print"Connected on=%d" iSocket );
    
socket_sendiSocket "GET /index.html HTTP/1.1^r^nHost: www.google.com^r^n^r^n" 128 );
}

public 
Socket_ConnectionRequestiSocket )
{
    new 
iError;

    if ( ( 
g_Socket socket_acceptiSocket iError ) ) )
        
server_print"Connect Request on=%d, Accepted request, new socket=%d" iSocket g_Socket );
}

public 
Socket_IncomingDataiSocket iBytes )
{
    new 
szData1024 ] , iGet socket_recviSocket szData sizeofszData ) );
    
    
server_print"Data Arrived on %d | Total Bytes=%d | Bytes-read=%d | Data=%s" iSocket iBytes iGet szData );
}

public 
Socket_DisconnectediSocket )
{
    
server_print"Disconnected=%d" ,iSocket );

Compile:
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Header size:            492 bytes
Code size:             1576 bytes
Data size:             1584 bytes
Stack/heap size:      16384 bytes; estimated max. usage=1036 cells (4144 bytes)
Total requirements:   20036 bytes
Done.

Compilation Time: 0,41 sec
Modules:
HTML Code:
mysql
sqlite
fun
engine
fakemeta
geoip
sockets2
regex
nvault
hamsandwich
cstrike
Plugins:
Code:
sockets2.amxx debug
Console:
Code:
amxx plugins
Currently loaded plugins:
       name                    version     author            file             status
 [  1] Admin Base              1.8.1.3746  AMXX Dev Team     admin.amxx       running
 [  2] Admin Commands          1.8.1.3746  AMXX Dev Team     admincmd.amxx    running
 [  3] Admin Help              1.8.1.3746  AMXX Dev Team     adminhelp.amxx   running
 [  4] Slots Reservation       1.8.1.3746  AMXX Dev Team     adminslots.amxx  running
 [  5] Multi-Lingual System    1.8.1.3746  AMXX Dev Team     multilingual.am  running
 [  6] Menus Front-End         1.8.1.3746  AMXX Dev Team     menufront.amxx   running
 [  7] Commands Menu           1.8.1.3746  AMXX Dev Team     cmdmenu.amxx     running
 [  8] Players Menu            1.8.1.3746  AMXX Dev Team     plmenu.amxx      running
 [  9] Maps Menu               1.8.1.3746  AMXX Dev Team     mapsmenu.amxx    running
 [ 10] Plugin Menu             1.8.1.3746  AMXX Dev Team     pluginmenu.amxx  running
 [ 11] Admin Chat              1.8.1.3746  AMXX Dev Team     adminchat.amxx   running
 [ 12] Anti Flood              1.8.1.3746  AMXX Dev Team     antiflood.amxx   running
 [ 13] Scrolling Message       1.8.1.3746  AMXX Dev Team     scrollmsg.amxx   running
 [ 14] Info. Messages          1.8.1.3746  AMXX Dev Team     imessage.amxx    running
 [ 15] Admin Votes             1.8.1.3746  AMXX Dev Team     adminvote.amxx   running
 [ 16] NextMap                 1.8.1.3746  AMXX Dev Team     nextmap.amxx     running
 [ 17] Nextmap Chooser         1.8.1.3746  AMXX Dev Team     mapchooser.amxx  running
 [ 18] TimeLeft                1.8.1.3746  AMXX Dev Team     timeleft.amxx    running
 [ 19] Pause Plugins           1.8.1.3746  AMXX Dev Team     pausecfg.amxx    running
 [ 20] Stats Configuration     1.8.1.3746  AMXX Dev Team     statscfg.amxx    running
 [ 21] Community Manager [C.S  1.0         ProIcons          Gather.amxx      debug
 [ 22] unknown                 unknown     unknown           sockets2.amxx    running
22 plugins, 22 running
amxx modules
Currently loaded modules:
      name                    version     author               status
 [ 1] MySQL                   1.8.1.3746  AMX Mod X Dev Team   running
 [ 2] SQLite                  1.8.1.3746  AMX Mod X Dev Team   running
 [ 3] Fun                     1.8.1.3746  AMX Mod X Dev Team   running
 [ 4] Engine                  1.8.1.3746  AMX Mod X Dev Team   running
 [ 5] FakeMeta                1.8.1.3746  AMX Mod X Dev Team   running
 [ 6] GeoIP                   1.8.1.3746  AMX Mod X Dev Team   running
 [ 7] Sockets2                1.8.1.3746  HLSW Dev Team        running
 [ 8] RegEx                   1.8.1.3746  AMX Mod X Dev Team   running
 [ 9] nVault                  1.8.1.3746  AMX Mod X Dev Team   running
 [10] Ham Sandwich            1.8.1.3746  AMX Mod X Dev Team   running
 [11] CStrike                 1.8.1.3746  AMX Mod X Dev Team   running
 [12] Sockets_hz              1.81        hackziner v. of HLS  running
 [13] CSX                     1.8.1.3746  AMX Mod X Dev Team   running
13 modules, 13 correct

Listen
Listening on=19 Error=0
Connect
Connecting on=-1 Error=115
SendData
Sending data on=-1
Test
Connecting on=-1 Error=115
Well i Also Tried to connect to the Listening Port Via an external Interpreter Source,

Code:
on *:sockopen:debug:{
  if ($sockerr) { echo -s [] $sock($sockname).wsmsg }
  else { echo -s [] Connected to Source without Any Problem }
}
on *:sockread:debug:{
  if ($sockerr) { echo -s [] $sock($sockname).wsmsg }
  sockread -f %debug
  echo -s [] %debug
}
on *:sockwrite:debug:{
  if ($sockerr) { echo -s [] $sock($sockname).wsmsg }
  else { echo -s [] Sent Data to Source without Any Problem, Test Passed }
}
And i Got this Reply on My Interpreter
Code:
[] Connected to Source without Any Problem
[] Sent Data to Source without Any Problem, Test Passed
With a few words, nothing happend to the Server's Console, as far i can see on that code Should echo something. But it didn't
PHP Code:
public Socket_IncomingDataiSocket iBytes )
{
    new 
szData1024 ] , iGet socket_recviSocket szData sizeofszData ) );
    
    
server_print"Data Arrived on %d | Total Bytes=%d | Bytes-read=%d | Data=%s" iSocket iBytes iGet szData );

__________________
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 05-07-2012 , 15:03   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #25

Ok if you didn't read the whole post, the Module is dissfunctioning
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
arqawa
Junior Member
Join Date: Jun 2012
Old 06-15-2012 , 05:52   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #26

Hi, I have the same problem. The server sends me the data, and plug-in, they do not come ...
arqawa is offline
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 06-15-2012 , 06:11   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #27

What do you mean arqawa ? That you use this module to receive info ?

If yes, post the code to identify the problem.
DjOptimuS is offline
arqawa
Junior Member
Join Date: Jun 2012
Old 06-15-2012 , 13:12   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #28

i have a forward on recieve data, and where php socket send me data every 1 second on 6-7 step forward do nothing
arqawa is offline
arqawa
Junior Member
Join Date: Jun 2012
Old 06-15-2012 , 13:13   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #29

and linux version do not connecting to the server with error [115]
arqawa is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-18-2012 , 17:34   Re: [INC/MODULE] Sockets Forwards
Reply With Quote #30

Will linux version be fixed and released?
OvidiuS is offline
Send a message via Skype™ to OvidiuS
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 08:11.


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