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