-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multiple client and adventure management socket/client
- Loading branch information
1 parent
691befd
commit 48024be
Showing
9 changed files
with
465 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
namespace InitPHP\Socket\Interfaces; | ||
|
||
interface SocketServerClientInterface | ||
{ | ||
|
||
/** | ||
* @param int|string $id | ||
* @return self | ||
*/ | ||
public function setId($id): self; | ||
|
||
/** | ||
* @return string|int|null | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* @param string $message | ||
* @return int|false | ||
*/ | ||
public function push(string $message); | ||
|
||
/** | ||
* @param int $length | ||
* @param int|null $type | ||
* @return string|false | ||
*/ | ||
public function read(int $length = 1024, ?int $type = null); | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function close(): bool; | ||
|
||
/** | ||
* @return false|resource|\Socket | ||
*/ | ||
public function getSocket(); | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function isDisconnected(): bool; | ||
|
||
} |
Oops, something went wrong.