server will try reading packets until none left(or limit is reached)

This commit is contained in:
GameHerobrine 2024-07-04 06:31:44 +03:00
parent fcff48b5b8
commit d5a38220bf
3 changed files with 22 additions and 5 deletions

View file

@ -42,7 +42,7 @@ class UDPSocket{
if($this->connected === false){
return false;
}
return @socket_recvfrom($this->sock, $buf, 65535, 0, $source, $port);;
return @socket_recvfrom($this->sock, $buf, 65535, 0, $source, $port);
}
public function write($data, $dest, $port){