<commit_before><?php
/**
 * This file is part of CherryHttp project.
 * You are using it at your own risk and you are fully responsible for everything that code will do.
 *
 * Copyright (c) 2016 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE file distributed with this source code.
 */

namespace noFlash\CherryHttp\Server\Node;


use noFlash\CherryHttp\Http\Exception\StreamException;
use noFlash\CherryHttp\IO\Network\NetworkNodeInterface;

/**
 * Listening node which can accept incoming connections.
 */
interface TcpListenerNodeInterface extends NetworkNodeInterface
{
    const RANDOM_LISTEN_PORT = 0;

    /**
     * Sets listening address.
     *
     * @param string $address Any valid IPv4 or IPv6 address, NetworkNodeInterface::UNDETERMINED_IPV4 or
     *                        NetworkNodeInterface::UNDETERMINED_IPV6.
     *
     * @return void
     *
     * @throws \InvalidArgumentException
     */
    public function setIpAddress($address);<commit_msg>Unified local ip naming to reduce confusion in TcpListenerNode interface.<commit_after><?php
/**
 * This file is part of CherryHttp project.
 * You are using it at your own risk and you are fully responsible for everything that code will do.
 *
 * Copyright (c) 2016 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE file distributed with this source code.
 */

namespace noFlash\CherryHttp\Server\Node;


use noFlash\CherryHttp\Http\Exception\StreamException;
use noFlash\CherryHttp\IO\Network\NetworkNodeInterface;

/**
 * Listening node which can accept incoming connections.
 */
interface TcpListenerNodeInterface extends NetworkNodeInterface
{
    const RANDOM_LISTEN_PORT = 0;

    /**
     * Sets listening address.
     *
     * @param string $address Any valid IPv4 or IPv6 address, NetworkNodeInterface::UNDETERMINED_IPV4 or
     *                        NetworkNodeInterface::UNDETERMINED_IPV6.
     *
     * @return void
     *
     * @throws \InvalidArgumentException
     */
    public function setLocalIpAddress($address);
{'fraction_non_alphanumeric': 0.07765602667937113, 'fraction_numerical': 0.00857551214864221, 'mean_word_length': 3.4397463002114166, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1484', 'n_tokens_mistral': 594, 'n_tokens_neox': 548, 'n_words': 190}