@@ 208-215 (lines=8) @@ | ||
205 | * @param callable $cb Callback |
|
206 | * @return boolean Success |
|
207 | */ |
|
208 | public function broadcastCall($method, $args = [], $cb = null) |
|
209 | { |
|
210 | return Daemon::$process->IPCManager->sendBroadcastCall( |
|
211 | '\\' . get_class($this) . ($this->name !== '' ? ':' . $this->name : ''), |
|
212 | $method, |
|
213 | $args, |
|
214 | $cb |
|
215 | ); |
|
216 | } |
|
217 | ||
218 | /** |
|
@@ 226-233 (lines=8) @@ | ||
223 | * @param mixed $cb Callback |
|
224 | * @return boolean Success |
|
225 | */ |
|
226 | public function singleCall($method, $args = [], $cb = null) |
|
227 | { |
|
228 | return Daemon::$process->IPCManager->sendSingleCall( |
|
229 | '\\' . get_class($this) . ($this->name !== '' ? ':' . $this->name : ''), |
|
230 | $method, |
|
231 | $args, |
|
232 | $cb |
|
233 | ); |
|
234 | } |
|
235 | ||
236 | /** |
|
@@ 245-253 (lines=9) @@ | ||
242 | * @param mixed $cb Callback |
|
243 | * @return boolean Success |
|
244 | */ |
|
245 | public function directCall($workerId, $method, $args = [], $cb = null) |
|
246 | { |
|
247 | return Daemon::$process->IPCManager->sendDirectCall( |
|
248 | $workerId, |
|
249 | '\\' . get_class($this) . ($this->name !== '' ? ':' . $this->name : ''), |
|
250 | $method, |
|
251 | $args, |
|
252 | $cb |
|
253 | ); |
|
254 | } |
|
255 | ||
256 | /** |