1 | <?php |
||
18 | class DatagramClientIo extends AbstractClientIo |
||
19 | { |
||
20 | /** |
||
21 | * Destination address |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $remoteAddress; |
||
26 | |||
27 | /** |
||
28 | * Constructor |
||
29 | * |
||
30 | * @param SocketInterface $socket Socket object |
||
31 | * @param string|null $remoteAddress Destination address in form scheme://host:port or null for local files io |
||
32 | */ |
||
33 | 34 | public function __construct(SocketInterface $socket, $remoteAddress) |
|
41 | |||
42 | /** {@inheritdoc} */ |
||
43 | 14 | protected function readRawDataIntoPicker(FramePickerInterface $picker) |
|
60 | |||
61 | /** {@inheritdoc} */ |
||
62 | 8 | protected function writeRawData($data) |
|
68 | |||
69 | /** {@inheritdoc} */ |
||
70 | protected function getRemoteAddress() |
||
74 | |||
75 | /** {@inheritdoc} */ |
||
76 | 23 | protected function isConnected() |
|
80 | |||
81 | /** {@inheritdoc} */ |
||
82 | 15 | protected function isEndOfTransfer() |
|
86 | |||
87 | /** {@inheritdoc} */ |
||
88 | 4 | protected function canReachFrame() |
|
93 | } |
||
94 |