@@ -149,6 +149,9 @@ |
||
| 149 | 149 | return false; |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | + /** |
|
| 153 | + * @param integer $port |
|
| 154 | + */ |
|
| 152 | 155 | protected function checkUdpPort($port): bool |
| 153 | 156 | { |
| 154 | 157 | $handler = @fsockopen( |
@@ -2,13 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Gemz\Port; |
| 4 | 4 | |
| 5 | +use Gemz\Port\Exceptions\InvalidArgument; |
|
| 5 | 6 | use React\Promise\Deferred; |
| 6 | 7 | use React\Promise\PromiseInterface; |
| 7 | -use React\Socket\Connector; |
|
| 8 | -use React\EventLoop\Factory; |
|
| 9 | -use React\EventLoop\LoopInterface; |
|
| 10 | -use React\Socket\ConnectionInterface; |
|
| 11 | -use Gemz\Port\Exceptions\InvalidArgument; |
|
| 12 | 8 | |
| 13 | 9 | class Port |
| 14 | 10 | { |