<commit_before>#ifndef SP2_IO_NETWORK_SOCKET_BASE_H
#define SP2_IO_NETWORK_SOCKET_BASE_H

#include <io/network/socketBase.h>
#include <SFML/System/NonCopyable.hpp>


namespace sp {
namespace io {
namespace network {


class SocketBase : sf::NonCopyable
{
public:
    void setBlocking(bool blocking);
    void setNoDelay(bool no_delay);
    void setTimeout(int milliseconds);

protected:
    bool isLastErrorNonBlocking();

    int handle = -1;
    bool blocking = true;
    
    friend class Selector;<commit_msg>Reduce jitter on network communication by enabling NO_DELAY, but still make large packets within a update cycle.<commit_after>#ifndef SP2_IO_NETWORK_SOCKET_BASE_H
#define SP2_IO_NETWORK_SOCKET_BASE_H

#include <io/network/socketBase.h>
#include <SFML/System/NonCopyable.hpp>


namespace sp {
namespace io {
namespace network {


class SocketBase : sf::NonCopyable
{
public:
    void setBlocking(bool blocking);
    void setTimeout(int milliseconds);

protected:
    bool isLastErrorNonBlocking();

    int handle = -1;
    bool blocking = true;
    
    friend class Selector;
{'fraction_non_alphanumeric': 0.07988980716253444, 'fraction_numerical': 0.005509641873278237, 'mean_word_length': 4.589743589743589, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1434484', 'n_tokens_mistral': 355, 'n_tokens_neox': 347, 'n_words': 90}