phpOMS/Socket/SocketInterface.php

57 lines
892 B
PHP
Executable File

<?php
/**
* Karaka
*
* PHP Version 8.1
*
* @package phpOMS\Socket
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
namespace phpOMS\Socket;
/**
* Socket class.
*
* @package phpOMS\Socket
* @license OMS License 1.0
* @link https://karaka.app
* @since 1.0.0
*/
interface SocketInterface
{
/**
* Create the socket.
*
* @param string $ip IP address
* @param int $port Port
*
* @return void
*
* @since 1.0.0
*/
public function create(string $ip, int $port) : void;
/**
* Close socket.
*
* @return void
*
* @since 1.0.0
*/
public function close() : void;
/**
* Run socket.
*
* @return void
*
* @since 1.0.0
*/
public function run() : void;
}