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

[Solved] sockets_hz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 05-05-2012 , 07:16   [Solved] sockets_hz
Reply With Quote #1

PHP Code:
public ga_read() {
    for (new 
i=1;i<=g_ga_counter;i++) {
        if (
g_ga_sockexists[i]) {
            if (
socket_change(g_ga_accept[i],1))
            {
                
socket_recv(g_ga_accept[i],g_ga_data,1024)
                if (
equal(g_ga_data,"")) {
                    
server_print("[Network][Listen] Connection with Client Lost.");
                    
socket_close(g_ga_accept[i]);
                }
                if(
strlen(g_ga_data) > 0
                {
                    
server_print("[Network][Listen][Data] [<-] %s",g_ga_data);
                }
            }
        }
    }

This isn't working, any idea?

The only message i'm seeing, is


[Network][Listen] Listening On Port 81

No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection
No pending connection

I'm opening a connection
sending data but still this..
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))

Last edited by ProIcons; 05-05-2012 at 09:54.
ProIcons is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-05-2012 , 07:21   Re: sockets_hz
Reply With Quote #2

The minimum interval between tasks is 0.1!

amxmodx.cpp
PHP Code:
if (base 0.1f)
    
base 0.1f
__________________

Last edited by claudiuhks; 05-05-2012 at 07:22.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 05-05-2012 , 07:34   Re: sockets_hz
Reply With Quote #3

This is working for the other socket i have, the non-listening
__________________
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-05-2012 , 09:48   Re: sockets_hz
Reply With Quote #4

I changed it to 0.1, and still same thing... no pending connection..
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
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 10:53.


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