<?php

namespace Velis\Filesystem\Av\Contract;

/**
 * @author Szymon Janaczek <szymon.janaczek@velistech.com>
 */
interface SocketInterface
{
    public function send(string $data, int $length, int $flags): int;
    public function recv(&$buffer, int $length, int $flags): int;
    public function close(): void;
    public function socketExportStream(): mixed;
}
