| 1 | <?php |
||
| 17 | class UnsupportedOperationException extends NetworkSocketException |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Throw OOB unsupported error for given socket |
||
| 21 | * |
||
| 22 | * @param SocketInterface $socket Socket object tried to perform operation |
||
| 23 | * |
||
| 24 | * @return UnsupportedOperationException |
||
| 25 | */ |
||
| 26 | 8 | public static function oobDataUnsupported(SocketInterface $socket) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Throw OOB data size exceeded for given socket |
||
| 39 | * |
||
| 40 | * @param SocketInterface $socket Socket object tried to perform operation |
||
| 41 | * @param int $packetSize Size of packet in bytes |
||
| 42 | * @param int $size Size of data about to sent |
||
| 43 | * |
||
| 44 | * @return UnsupportedOperationException |
||
| 45 | */ |
||
| 46 | 4 | public static function oobDataPackageSizeExceeded(SocketInterface $socket, $packetSize, $size) |
|
| 58 | } |
||
| 59 |