src/Socket/Socket.php 1 location
|
@@ 313-318 (lines=6) @@
|
310 |
|
$context |
311 |
|
); |
312 |
|
|
313 |
|
if (!$socket || $errno > 0) |
314 |
|
{ |
315 |
|
throw new LogicException( |
316 |
|
sprintf('Could not connect socket [%s] because of error [%d; %s]', $endpoint, $errno, $errstr) |
317 |
|
); |
318 |
|
} |
319 |
|
|
320 |
|
stream_set_blocking($socket, false); |
321 |
|
|
src/Socket/SocketListener.php 1 location
|
@@ 427-432 (lines=6) @@
|
424 |
|
$context |
425 |
|
); |
426 |
|
|
427 |
|
if (!$socket || $errno > 0) |
428 |
|
{ |
429 |
|
throw new LogicException( |
430 |
|
sprintf('Could not bind socket [%s] because of error [%d; %s]', $endpoint, $errno, $errstr) |
431 |
|
); |
432 |
|
} |
433 |
|
|
434 |
|
return $socket; |
435 |
|
} |