1<?php
2/**
3 * This file is part of the FreeDSx LDAP package.
4 *
5 * (c) Chad Sikorra <Chad.Sikorra@gmail.com>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11namespace FreeDSx\Ldap\Server\ServerRunner;
12
13use FreeDSx\Socket\SocketServer;
14
15/**
16 * Runs the TCP server, accepts client connections, dispatches client connections to the server protocol handler.
17 *
18 * @author Chad Sikorra <Chad.Sikorra@gmail.com>
19 */
20interface ServerRunnerInterface
21{
22    /**
23     * Runs the socket server to accept incoming client connections and dispatch them to the protocol handler.
24     *
25     * @param SocketServer $server
26     */
27    public function run(SocketServer $server): void;
28}
29