Method |
Description |
|
addRoute ( string $path, Kraken\Network\NetworkComponentInterface $component ) : Kraken\Network\NetworkServerInterface |
Add an endpoint/application to the server. |
|
blockAddress ( string $address ) : Kraken\Network\NetworkServerInterface |
Add an address to the blacklist that will not be allowed to connect to your application. |
|
close ( ) |
Close the underlying SocketListner. |
|
existsRoute ( string $path ) : boolean |
Check if there exists any endpoint/application to the server on given route. |
|
getBlockedAddresses ( ) : string[] |
Get an array of all the addresses blocked. |
|
isAddressBlocked ( string $address ) : boolean |
Check if given $address is blocked or not. |
|
removeRoute ( string $path ) : Kraken\Network\NetworkServerInterface |
Remote endpoint/application from the server. |
|
stop ( ) |
Close the underlying SocketListner. |
|
unblockAddress ( string $address ) : Kraken\Network\NetworkServerInterface |
Unblock an address so they can access your application again. |
|