I want to use this function, but it's not static. So my question is how to use sock_recvfrom with udpserversocket?
sorry, but why on earth would you want that? Also, the UDPServerSocket is on another THREAD and plugins are not really meant to interact with RakLib. What do you want to do?
i want to read buffers which are sent to my server by another server, but pocketmine ignore the buffer if it's not any valid datapacket
after I receive buffer in thread it execute only one time after and stop PHP: public function run(){ while(true){ echo '1'; if(@socket_recvfrom($this->clientConnection, $buffer, 65535, 0, $address, $port) !== false){ echo '2'; }else{ sleep(1); } }} so in console it's "121"