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:socket, String:receiveData[], const dataSize, any:hFile) {
PrintToServer("Receive: %s", receiveData);
SocketSend(socket, receiveData);
CloseHandle(socket);
}
Then I use the following code to receive all the data:
PHP Code:
//$data .= fread($fp, 4096);
while (!feof ($fp))
$data. = fgets ($fp, 512);
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.