Raised This Month: $ Target: $400
 0% 

Need help: Socket On CS:GO?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wwzw
Member
Join Date: Feb 2009
Old 02-22-2013 , 21:47   Re: Need help: Socket On CS:GO?
Reply With Quote #7

I am in the CS:S server test, it can work!
The console display:
PHP Code:
:58776 connected 
PHP page also display: ($data = fread ($fp, 4096); receive data)
PHP Code:
send quit to quit 
I edit some code of listenexample.sp:
PHP Code:
public OnChildSocketReceive(Handle:socketString:receiveData[], const dataSizeany:hFile) {
 
PrintToServer("Receive: %s"receiveData);
 
SocketSend(socketreceiveData);
 
CloseHandle(socket);

Then I use the following code to receive all the data:
PHP Code:
//$data .= fread($fp, 4096);
while (!feof ($fp))
$data. = fgets ($fp512); 
Console display:
PHP Code:
:60140 connected
Receive
Some msg for test 
PHP web page display:
PHP Code:
send quit to quit Some msg for test 
This obviously: socket3.0.1 on the CS:S is the work is successful, but in the CS:GO is not working properly.

Last edited by wwzw; 02-22-2013 at 22:11.
wwzw 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 23:57.


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