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

[Solved] sockets_hz


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 18:45.


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