Skip to content

Commit

Permalink
Updated socket streams
Browse files Browse the repository at this point in the history
  • Loading branch information
khelle committed Jul 23, 2017
1 parent 4dd22b0 commit 7f896d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Socket/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
namespace Dazzle\Socket;

use Dazzle\Loop\LoopInterface;
use Dazzle\Stream\AsyncStream;
use Dazzle\Stream\Stream;
use Dazzle\Throwable\Exception\Logic\InstantiationException;
use Dazzle\Throwable\Exception\Runtime\ExecutionException;
use Dazzle\Throwable\Exception\LogicException;
use Error;
use Exception;

class Socket extends AsyncStream implements SocketInterface
class Socket extends Stream implements SocketInterface
{
/**
* @var string
Expand Down
6 changes: 3 additions & 3 deletions src/Socket/SocketInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Dazzle\Socket;

use Dazzle\Stream\AsyncStreamInterface;
use Dazzle\Stream\StreamInterface;

interface SocketInterface extends AsyncStreamInterface
interface SocketInterface extends StreamInterface
{
/**
* Stop listener and underlying resource object. It is an alias for close() method.
*
* @see StreamBaseInterface::close
* @see StreamDataInterface::close
*/
public function stop();

Expand Down
6 changes: 3 additions & 3 deletions src/Socket/SocketListenerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

use Dazzle\Event\EventEmitterInterface;
use Dazzle\Loop\LoopResourceInterface;
use Dazzle\Stream\StreamBaseInterface;
use Dazzle\Stream\StreamDataInterface;

/**
* @event connect : callable(object, SocketInterface)
*/
interface SocketListenerInterface extends EventEmitterInterface, LoopResourceInterface, StreamBaseInterface
interface SocketListenerInterface extends EventEmitterInterface, LoopResourceInterface, StreamDataInterface
{
/**
* Star listener and underlying resource object.
Expand All @@ -21,7 +21,7 @@ public function start();
/**
* Stop listener and underlying resource object. It is an alias for close() method.
*
* @see StreamBaseInterface::close
* @see StreamDataInterface::close
*/
public function stop();

Expand Down

0 comments on commit 7f896d8

Please sign in to comment.